Skip to content

Commit 5204f13

Browse files
committed
Don't try to invalidate creator proxies
We generate them in the only if there are no clashes to start with. So, no need to check that again.
1 parent 240ae0c commit 5204f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ class Namer { typer: Typer =>
784784
!sd.symbol.is(Deferred) && sd.matches(denot)))
785785

786786
val isClashingSynthetic =
787-
denot.is(Synthetic)
787+
denot.is(Synthetic, butNot = ConstructorProxy)
788788
&& desugar.isRetractableCaseClassMethodName(denot.name)
789789
&& isCaseClassOrCompanion(denot.owner)
790790
&& (definesMember || inheritsConcreteMember)

0 commit comments

Comments
 (0)