We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6554454 commit 873338eCopy full SHA for 873338e
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -4014,7 +4014,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
4014
case qual: This if qual.symbol.is(ModuleClass) =>
4015
cpy.Ident(qual)(qual.symbol.name.sourceModuleName.toTypeName)
4016
case _ =>
4017
- errorTree(tree, em"cannot convert to $tree to an instance creation expression")
+ errorTree(tree, em"cannot convert from $tree to an instance creation expression")
4018
val tycon = tree.tpe.widen.finalResultType.underlyingClassRef(refinementOK = false)
4019
typed(
4020
untpd.Select(
0 commit comments