File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ object SymDenotations {
496
496
def fullName (using Context ): Name = fullNameSeparated(QualifiedName )
497
497
498
498
/** The name given in a `@targetName` annotation if one is present, `name` otherwise */
499
- final def erasedName (using Context ): Name =
499
+ def erasedName (using Context ): Name =
500
500
val targetNameAnnot =
501
501
if isAllOf(ModuleClass | Synthetic ) then companionClass.getAnnotation(defn.TargetNameAnnot )
502
502
else getAnnotation(defn.TargetNameAnnot )
@@ -2318,6 +2318,7 @@ object SymDenotations {
2318
2318
override def mapInfo (f : Type => Type )(using Context ): SingleDenotation = this
2319
2319
2320
2320
override def matches (other : SingleDenotation )(using Context ): Boolean = false
2321
+ override def erasedName (using Context ): Name = EmptyTermName
2321
2322
override def mapInherited (ownDenots : PreDenotation , prevDenots : PreDenotation , pre : Type )(using Context ): SingleDenotation = this
2322
2323
override def filterWithPredicate (p : SingleDenotation => Boolean ): SingleDenotation = this
2323
2324
override def filterDisjoint (denots : PreDenotation )(using Context ): SingleDenotation = this
You can’t perform that action at this time.
0 commit comments