Skip to content

Commit e8e904d

Browse files
committed
Add comment
1 parent 8b1a65a commit e8e904d

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
@@ -327,6 +327,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
327327
// `{ bindings; ~expansion }` to `~{ bindings; expansion }`
328328
// `{ bindings; { ~expansion } }` to `~{ bindings; expansion }`
329329
// `{ bindings; { ~expansion; () } }` to `~{ bindings; expansion; () }`
330+
// note: due to value-discarding which converts an { e } into { e; () })
330331
val inlinedWithoutSplice = cpy.Inlined(tree)(call, bindings, body)
331332
val t =
332333
if (level == 0) transform(Splicer.splice(inlinedWithoutSplice))

0 commit comments

Comments
 (0)