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 1723086 commit 3b859f3Copy full SHA for 3b859f3
compiler/src/dotty/tools/dotc/transform/Erasure.scala
@@ -1051,7 +1051,7 @@ object Erasure {
1051
// and accept the first one (see tests/run/mixins.scala)
1052
val newParents = impl.parents.head :: impl.parents.tail.filterConserve: tree =>
1053
def isTraitConstructor = tree match
1054
- case Trees.Block(_, expr) => // Specific management for trait constructors (See #9216)
+ case Trees.Block(_, expr) => // Specific management for trait constructors (see tests/pos/i9213.scala)
1055
expr.symbol.isConstructor && expr.symbol.owner.is(Flags.Trait)
1056
case _ => tree.symbol.isConstructor && tree.symbol.owner.is(Flags.Trait)
1057
tree.symbol.is(Flags.Trait) || isTraitConstructor
0 commit comments