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 {
1899
1899
* someone does a findMember on a subclass.
1900
1900
*/
1901
1901
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)
1903
1905
if (myMemberCache != null ) myMemberCache.remove(sym.name)
1904
1906
if (! sym.flagsUNSAFE.is(Private )) invalidateMemberNamesCache()
1905
1907
}
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