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 {
496496 def fullName (using Context ): Name = fullNameSeparated(QualifiedName )
497497
498498 /** 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 =
500500 val targetNameAnnot =
501501 if isAllOf(ModuleClass | Synthetic ) then companionClass.getAnnotation(defn.TargetNameAnnot )
502502 else getAnnotation(defn.TargetNameAnnot )
@@ -2318,6 +2318,7 @@ object SymDenotations {
23182318 override def mapInfo (f : Type => Type )(using Context ): SingleDenotation = this
23192319
23202320 override def matches (other : SingleDenotation )(using Context ): Boolean = false
2321+ override def erasedName (using Context ): Name = EmptyTermName
23212322 override def mapInherited (ownDenots : PreDenotation , prevDenots : PreDenotation , pre : Type )(using Context ): SingleDenotation = this
23222323 override def filterWithPredicate (p : SingleDenotation => Boolean ): SingleDenotation = this
23232324 override def filterDisjoint (denots : PreDenotation )(using Context ): SingleDenotation = this
You can’t perform that action at this time.
0 commit comments