Skip to content

Commit 57afac6

Browse files
committed
Fix missing transform after rebase
1 parent df34837 commit 57afac6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ class ReifyQuotes extends MacroTransformWithImplicits {
332332
val tree1 =
333333
if (level == 0) cpy.Inlined(tree)(call, stagedBindings, Splicer.splice(seq(splicedBindings, body)))
334334
else seq(stagedBindings, cpy.Select(expansion)(cpy.Inlined(tree)(call, splicedBindings, body), name))
335-
transform(tree1)
335+
val tree2 = transform(tree1)
336336

337337
// due to value-discarding which converts an { e } into { e; () })
338-
if (tree.tpe =:= defn.UnitType) Block(tree1 :: Nil, Literal(Constant(())))
339-
else tree1
338+
if (tree.tpe =:= defn.UnitType) Block(tree2 :: Nil, Literal(Constant(())))
339+
else tree2
340340
case _: Import =>
341341
tree
342342
case tree: DefDef if tree.symbol.is(Macro) && level == 0 =>

0 commit comments

Comments
 (0)