File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1899,7 +1899,9 @@ object SymDenotations {
18991899 * someone does a findMember on a subclass.
19001900 */
19011901 def delete (sym : Symbol )(using Context ): Unit = {
1902- info.decls.openForMutations.unlink(sym)
1902+ val scope = info.decls.openForMutations
1903+ scope.unlink(sym, sym.name)
1904+ if sym.name != sym.originalName then scope.unlink(sym, sym.originalName)
19031905 if (myMemberCache != null ) myMemberCache.remove(sym.name)
19041906 if (! sym.flagsUNSAFE.is(Private )) invalidateMemberNamesCache()
19051907 }
Original file line number Diff line number Diff line change 1+ import scala .annotation .targetName
2+
3+ trait Example :
4+ @ targetName(" funfun" )
5+ inline def fun : Unit = ???
You can’t perform that action at this time.
0 commit comments