File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/dotty/tools/backend/jvm Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,12 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
493
493
def superClass : Symbol = toDenot(sym).superClass
494
494
def enclClass : Symbol = toDenot(sym).enclosingClass
495
495
def linkedClassOfClass : Symbol = linkedClass
496
- def linkedClass : Symbol = toDenot(sym).linkedClass // exitingPickler(sym.linkedClassOfClass)
496
+ def linkedClass : Symbol = {
497
+ val ct = ctx.withPhase(ctx.flattenPhase.prev)
498
+ toDenot(sym)(ct).linkedClass(ct)
499
+ // java.util.Attributes.Name$ -> java$util$Attributes$Name$ no companion class after flatten
500
+ // see bug #348
501
+ } // exitingPickler(sym.linkedClassOfClass)
497
502
def companionClass : Symbol = toDenot(sym).companionClass
498
503
def companionModule : Symbol = toDenot(sym).companionModule
499
504
def companionSymbol : Symbol = if (sym is Flags .Module ) companionClass else companionModule
You can’t perform that action at this time.
0 commit comments