File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/compiler/scala/tools/nsc/transform Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure =>
113
113
114
114
/** Return the implementation class of a trait; create a new one of one does not yet exist */
115
115
def implClass (iface : Symbol ): Symbol = {
116
+ assert(iface.needsImplClass)
116
117
iface.info
117
118
118
119
implClassMap.getOrElse(iface, enteringPhase(implClassPhase) {
@@ -311,7 +312,7 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure =>
311
312
}
312
313
val mixinConstructorCalls : List [Tree ] = {
313
314
for (mc <- clazz.mixinClasses.reverse
314
- if mc.hasFlag(lateINTERFACE))
315
+ if mc.hasFlag(lateINTERFACE)) // implies mc.needsImplClass
315
316
yield mixinConstructorCall(implClass(mc))
316
317
}
317
318
tree match {
You can’t perform that action at this time.
0 commit comments