Skip to content

Commit df34837

Browse files
committed
Add comment
1 parent e9e4702 commit df34837

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
334334
else seq(stagedBindings, cpy.Select(expansion)(cpy.Inlined(tree)(call, splicedBindings, body), name))
335335
transform(tree1)
336336

337+
// due to value-discarding which converts an { e } into { e; () })
337338
if (tree.tpe =:= defn.UnitType) Block(tree1 :: Nil, Literal(Constant(())))
338339
else tree1
339340
case _: Import =>

0 commit comments

Comments
 (0)