summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala
index 2bdf8a3a73..707cf7cf59 100644
--- a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala
+++ b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala
@@ -1781,9 +1781,8 @@ abstract class GenMSIL extends SubComponent {
}
val sym = iclass.symbol
- if (types contains sym)
- if (types(sym).isInstanceOf[TypeBuilder])
- return
+ if (types.contains(sym) && types(sym).isInstanceOf[TypeBuilder])
+ return
def isInterface(s: Symbol) = s.isTrait && !s.isImplClass
val parents: List[Type] =