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 b67bcc0 commit a4cb389Copy full SHA for a4cb389
compiler/src/dotty/tools/dotc/transform/Inlining.scala
@@ -57,7 +57,8 @@ class Inlining extends MacroTransform {
57
case _ if Inliner.isInlineable(tree) && !tree.tpe.widen.isInstanceOf[MethodOrPoly] =>
58
val tree1 = super.transform(tree)
59
val inlined = Inliner.inlineCall(tree1)
60
- inlined
+ if tree1 eq inlined then inlined
61
+ else transform(inlined)
62
case _ =>
63
super.transform(tree)
64
0 commit comments