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.
2 parents 80764e0 + ef57fea commit eb4d2c8Copy full SHA for eb4d2c8
compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala
@@ -152,9 +152,7 @@ object PickledQuotes {
152
treeMap = tree => if (tree.symbol == paramSym) x1Ref().withPos(tree.pos) else tree
153
).transform(ddef.rhs)
154
case Block(stats, expr) =>
155
- val applied = rec(expr)
156
- if (stats.isEmpty) applied
157
- else Block(stats, applied)
+ seq(stats, rec(expr))
158
case Inlined(call, bindings, expansion) =>
159
Inlined(call, bindings, rec(expansion))
160
case _ =>
0 commit comments