diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/AddInterfaces.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala index e09804c52b..6a4b598827 100644 --- a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala +++ b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala @@ -75,7 +75,8 @@ abstract class AddInterfaces extends InfoTransform { if (impl == NoSymbol) { impl = iface.cloneSymbolImpl(iface.owner) impl.name = implName - iface.owner.info.decls enter impl + if (iface.owner.isClass) + iface.owner.info.decls enter impl } if (currentRun.compiles(iface)) currentRun.symSource(impl) = iface.sourceFile impl setPos iface.pos |