Skip to content

Commit 37b71f3

Browse files
committed
Edited wrong file
1 parent 27ac306 commit 37b71f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import Names._
1717
import NameKinds._
1818
import NameOps._
1919
import ast.Trees._
20+
import dotty.tools.dotc.inlines.Inlines
2021

2122
object Mixin {
2223
val name: String = "mixin"
@@ -221,6 +222,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
221222
case _ =>
222223
}
223224
(scall, stats ::: inits, args)
225+
case inlined @ Inlined(_, _, _) => transformConstructor(Inlines.dropInlined(inlined) )
224226
case _ =>
225227
val Apply(sel @ Select(New(_), nme.CONSTRUCTOR), args) = tree: @unchecked
226228
val (callArgs, initArgs) = if (tree.symbol.owner.is(Trait)) (Nil, args) else (args, Nil)

tests/pos-with-compiler-cc/dotc/transform/Mixin.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
221221
case _ =>
222222
}
223223
(scall, stats ::: inits, args)
224-
case inlined @ Inlined(_, _, _) => transformConstructor(Inlines.dropInlined(inlined))
225224
case _ =>
226225
val Apply(sel @ Select(New(_), nme.CONSTRUCTOR), args) = tree: @unchecked
227226
val (callArgs, initArgs) = if (tree.symbol.owner.is(Trait)) (Nil, args) else (args, Nil)

0 commit comments

Comments
 (0)