From ef57fea936b218de723822360d5002cf47e8dff1 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 7 May 2018 14:33:42 +0200 Subject: [PATCH] Eliminate nested blocks in functionAppliedTo --- compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala b/compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala index 3bf08863b91c..2c88c5464ef9 100644 --- a/compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala +++ b/compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala @@ -152,9 +152,7 @@ object PickledQuotes { treeMap = tree => if (tree.symbol == paramSym) x1Ref().withPos(tree.pos) else tree ).transform(ddef.rhs) case Block(stats, expr) => - val applied = rec(expr) - if (stats.isEmpty) applied - else Block(stats, applied) + seq(stats, rec(expr)) case Inlined(call, bindings, expansion) => Inlined(call, bindings, rec(expansion)) case _ =>