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 8b1a65a commit e8e904dCopy full SHA for e8e904d
compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala
@@ -327,6 +327,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
327
// `{ bindings; ~expansion }` to `~{ bindings; expansion }`
328
// `{ bindings; { ~expansion } }` to `~{ bindings; expansion }`
329
// `{ bindings; { ~expansion; () } }` to `~{ bindings; expansion; () }`
330
+ // note: due to value-discarding which converts an { e } into { e; () })
331
val inlinedWithoutSplice = cpy.Inlined(tree)(call, bindings, body)
332
val t =
333
if (level == 0) transform(Splicer.splice(inlinedWithoutSplice))
0 commit comments