We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9bebf8 commit d3c0885Copy full SHA for d3c0885
src/compiler/scala/tools/nsc/backend/jvm/BTypesFromSymbols.scala
@@ -234,12 +234,13 @@ class BTypesFromSymbols[G <: Global](val global: G) extends BTypes {
234
235
val allParents = classParents ++ classSym.annotations.flatMap(newParentForAnnotation)
236
237
+ val minimizedParents = if (classSym.isJavaDefined) allParents else erasure.minimizeParents(allParents)
238
// We keep the superClass when computing minimizeParents to eliminate more interfaces.
239
// Example: T can be eliminated from D
240
// trait T
241
// class C extends T
242
// class D extends C with T
- val interfaces = erasure.minimizeParents(allParents) match {
243
+ val interfaces = minimizedParents match {
244
case superClass :: ifs if !isInterfaceOrTrait(superClass.typeSymbol) =>
245
ifs
246
case ifs =>
0 commit comments