Skip to content

Commit 873338e

Browse files
oderskyjchyb
andauthored
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
Co-authored-by: Jan Chyb <[email protected]>
1 parent 6554454 commit 873338e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4014,7 +4014,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
40144014
case qual: This if qual.symbol.is(ModuleClass) =>
40154015
cpy.Ident(qual)(qual.symbol.name.sourceModuleName.toTypeName)
40164016
case _ =>
4017-
errorTree(tree, em"cannot convert to $tree to an instance creation expression")
4017+
errorTree(tree, em"cannot convert from $tree to an instance creation expression")
40184018
val tycon = tree.tpe.widen.finalResultType.underlyingClassRef(refinementOK = false)
40194019
typed(
40204020
untpd.Select(

0 commit comments

Comments
 (0)