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 @@ -494,7 +494,7 @@ object SymDenotations {
494
494
def fullName (using Context ): Name = fullNameSeparated(QualifiedName )
495
495
496
496
/** The name given in a `@targetName` annotation if one is present, `name` otherwise */
497
- final def erasedName (using Context ): Name =
497
+ def erasedName (using Context ): Name =
498
498
val targetNameAnnot =
499
499
if isAllOf(ModuleClass | Synthetic ) then companionClass.getAnnotation(defn.TargetNameAnnot )
500
500
else getAnnotation(defn.TargetNameAnnot )
@@ -2323,6 +2323,7 @@ object SymDenotations {
2323
2323
override def mapInfo (f : Type => Type )(using Context ): SingleDenotation = this
2324
2324
2325
2325
override def matches (other : SingleDenotation )(using Context ): Boolean = false
2326
+ override def erasedName (using Context ): Name = EmptyTermName
2326
2327
override def mapInherited (ownDenots : PreDenotation , prevDenots : PreDenotation , pre : Type )(using Context ): SingleDenotation = this
2327
2328
override def filterWithPredicate (p : SingleDenotation => Boolean ): SingleDenotation = this
2328
2329
override def filterDisjoint (denots : PreDenotation )(using Context ): SingleDenotation = this
You can’t perform that action at this time.
0 commit comments