diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/AddInterfaces.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/AddInterfaces.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala index 34bad05e1f..e981910bdb 100644 --- a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala +++ b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala @@ -66,9 +66,10 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure => /** Return the implementation class of a trait; create a new one of one does not yet exist */ def implClass(iface: Symbol): Symbol = { - iface.info def implClassFlags = iface.flags & ~(INTERFACE | lateINTERFACE) | IMPLCLASS + iface.info + implClassMap.getOrElse(iface, { atPhase(implClassPhase) { if (iface.implClass ne NoSymbol) @@ -98,8 +99,7 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure => else log("not unlinking existing " + impl + " as the impl class is not visible on the classpath.") } if (impl == NoSymbol) { - impl = iface.cloneSymbolImpl(iface.owner, implClassFlags) - impl.name = implName + impl = iface.cloneSymbolImpl(iface.owner, implClassFlags) setName implName impl.sourceFile = iface.sourceFile if (iface.owner.isClass) iface.owner.info.decls enter impl |