Skip to content

Commit 989cf1b

Browse files
noti0na1WojciechMazur
authored andcommitted
Add a missing condition back.
[Cherry-picked 64319eb]
1 parent 9564161 commit 989cf1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/core/TypeErasure.scala

+1
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ class TypeErasure(sourceLanguage: SourceLanguage, semiEraseVCs: Boolean, isConst
729729
keep = sym => !sym.isType || sym.isClass,
730730
rename = sym =>
731731
if sym.lastKnownDenotation.unforcedAnnotation(defn.TargetNameAnnot).isDefined
732+
&& sym.targetName != sym.name
732733
then sym.targetName
733734
else null
734735
)

0 commit comments

Comments
 (0)