Skip to content

Commit f7539bb

Browse files
committed
Inline calls that are inlined by the Inliner
1 parent 27380d1 commit f7539bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ class Inlining extends MacroTransform {
5757
case _ if Inliner.isInlineable(tree) && !tree.tpe.widen.isInstanceOf[MethodOrPoly] =>
5858
val tree1 = super.transform(tree)
5959
val inlined = Inliner.inlineCall(tree1)
60-
inlined
60+
if tree1 eq inlined then inlined
61+
else transform(inlined)
6162
case _ =>
6263
super.transform(tree)
6364

0 commit comments

Comments
 (0)