Skip to content

Commit 51ca48c

Browse files
committed
scala#386 is fixed. Remove workaround
1 parent ce10c6f commit 51ca48c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
504504
def enclClass: Symbol = toDenot(sym).enclosingClass
505505
def linkedClassOfClass: Symbol = linkedClass
506506
def linkedClass: Symbol = {
507-
val ct = ctx.withPhase(ctx.flattenPhase.prev)
508-
toDenot(sym)(ct).linkedClass(ct)
509-
// java.util.Attributes.Name$ -> java$util$Attributes$Name$ no companion class after flatten
510-
// see bug #348
507+
toDenot(sym)(ctx).linkedClass(ctx)
511508
} //exitingPickler(sym.linkedClassOfClass)
512509
def companionClass: Symbol = toDenot(sym).companionClass
513510
def companionModule: Symbol = toDenot(sym).companionModule

0 commit comments

Comments
 (0)