diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index 4a87f989c78d..5d6d848329cd 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -495,7 +495,7 @@ class Typer extends Namer val shadowed = findRef(name, pt, EmptyFlags, ConstructorProxy, tree.srcPos) if shadowed.exists then report.error( - em"""Reference to creator proxy for ${ownType.symbol.companionClass.showLocated} + em"""Reference to constructor proxy for ${ownType.symbol.companionClass.showLocated} |shadows outer reference to ${shadowed.termSymbol.showLocated}""", tree.srcPos) case _ =>