Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/transform/Erasure.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Stucki <[email protected]>
  • Loading branch information
hamzaremmal and nicolasstucki authored Feb 12, 2024
1 parent 1723086 commit 3b859f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/transform/Erasure.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ object Erasure {
// and accept the first one (see tests/run/mixins.scala)
val newParents = impl.parents.head :: impl.parents.tail.filterConserve: tree =>
def isTraitConstructor = tree match
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)
expr.symbol.isConstructor && expr.symbol.owner.is(Flags.Trait)
case _ => tree.symbol.isConstructor && tree.symbol.owner.is(Flags.Trait)
tree.symbol.is(Flags.Trait) || isTraitConstructor
Expand Down

0 comments on commit 3b859f3

Please sign in to comment.