diff options
author | Martin Odersky <odersky@gmail.com> | 2006-11-23 11:38:55 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-11-23 11:38:55 +0000 |
commit | 25133fac5d650978ac92781a6a210c76f8e2e682 (patch) | |
tree | 4b5936f37a38779cf2b876b4e9bc6730dcca3af0 /src/compiler | |
parent | 5cfd4f2b9e4c285c1936f398d881da80bcb40759 (diff) | |
download | scala-25133fac5d650978ac92781a6a210c76f8e2e682.tar.gz scala-25133fac5d650978ac92781a6a210c76f8e2e682.tar.bz2 scala-25133fac5d650978ac92781a6a210c76f8e2e682.zip |
fixed bug that caused scalatest to break
Diffstat (limited to 'src/compiler')
-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 |