From efe3e205406724d0682b030add468f0cc2ed9eaa Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 25 Mar 2021 09:36:18 +0100 Subject: [PATCH] Change creator proxy to constructor proxy in error message Fixes #11853 --- compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 _ =>