Skip to content

Commit 70c6dfc

Browse files
authored
Merge pull request #11891 from dotty-staging/fix-11853
Change creator proxy to constructor proxy in error message
2 parents f20c5f5 + efe3e20 commit 70c6dfc

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
@@ -495,7 +495,7 @@ class Typer extends Namer
495495
val shadowed = findRef(name, pt, EmptyFlags, ConstructorProxy, tree.srcPos)
496496
if shadowed.exists then
497497
report.error(
498-
em"""Reference to creator proxy for ${ownType.symbol.companionClass.showLocated}
498+
em"""Reference to constructor proxy for ${ownType.symbol.companionClass.showLocated}
499499
|shadows outer reference to ${shadowed.termSymbol.showLocated}""", tree.srcPos)
500500
case _ =>
501501

0 commit comments

Comments
 (0)