Skip to content

Commit 3b859f3

Browse files
Update compiler/src/dotty/tools/dotc/transform/Erasure.scala
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
1 parent 1723086 commit 3b859f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ object Erasure {
10511051
// and accept the first one (see tests/run/mixins.scala)
10521052
val newParents = impl.parents.head :: impl.parents.tail.filterConserve: tree =>
10531053
def isTraitConstructor = tree match
1054-
case Trees.Block(_, expr) => // Specific management for trait constructors (See #9216)
1054+
case Trees.Block(_, expr) => // Specific management for trait constructors (see tests/pos/i9213.scala)
10551055
expr.symbol.isConstructor && expr.symbol.owner.is(Flags.Trait)
10561056
case _ => tree.symbol.isConstructor && tree.symbol.owner.is(Flags.Trait)
10571057
tree.symbol.is(Flags.Trait) || isTraitConstructor

0 commit comments

Comments
 (0)