File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/compiler/scala/tools/nsc/backend/jvm Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,13 @@ class BTypesFromSymbols[G <: Global](val global: G) extends BTypes {
234
234
235
235
val allParents = classParents ++ classSym.annotations.flatMap(newParentForAnnotation)
236
236
237
+ val minimizedParents = if (classSym.isJavaDefined) allParents else erasure.minimizeParents(allParents)
237
238
// We keep the superClass when computing minimizeParents to eliminate more interfaces.
238
239
// Example: T can be eliminated from D
239
240
// trait T
240
241
// class C extends T
241
242
// class D extends C with T
242
- val interfaces = erasure.minimizeParents(allParents) match {
243
+ val interfaces = minimizedParents match {
243
244
case superClass :: ifs if ! isInterfaceOrTrait(superClass.typeSymbol) =>
244
245
ifs
245
246
case ifs =>
You can’t perform that action at this time.
0 commit comments