We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcf6c72 + 97ee5c0 commit c855812Copy full SHA for c855812
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1899,7 +1899,9 @@ object SymDenotations {
1899
* someone does a findMember on a subclass.
1900
*/
1901
def delete(sym: Symbol)(using Context): Unit = {
1902
- info.decls.openForMutations.unlink(sym)
+ val scope = info.decls.openForMutations
1903
+ scope.unlink(sym, sym.name)
1904
+ if sym.name != sym.originalName then scope.unlink(sym, sym.originalName)
1905
if (myMemberCache != null) myMemberCache.remove(sym.name)
1906
if (!sym.flagsUNSAFE.is(Private)) invalidateMemberNamesCache()
1907
}
tests/pos/i11731.scala
@@ -0,0 +1,5 @@
1
+import scala.annotation.targetName
2
+
3
+trait Example:
4
+ @targetName("funfun")
5
+ inline def fun: Unit = ???
0 commit comments