Skip to content

Commit

Permalink
Add a missing condition back.
Browse files Browse the repository at this point in the history
[Cherry-picked 64319eb]
  • Loading branch information
noti0na1 authored and WojciechMazur committed Jun 28, 2024
1 parent 9564161 commit 989cf1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/core/TypeErasure.scala
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ class TypeErasure(sourceLanguage: SourceLanguage, semiEraseVCs: Boolean, isConst
keep = sym => !sym.isType || sym.isClass,
rename = sym =>
if sym.lastKnownDenotation.unforcedAnnotation(defn.TargetNameAnnot).isDefined
&& sym.targetName != sym.name
then sym.targetName
else null
)
Expand Down

0 comments on commit 989cf1b

Please sign in to comment.