Skip to content

Commit ae88b64

Browse files
committed
Do not lift bindings for blocks
1 parent 4c8ed6b commit ae88b64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/inlines/Inlines.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ object Inlines:
134134
* inline call expansions smaller.
135135
*/
136136
def liftBindings(tree: Tree, liftPos: Tree => Tree): Tree = tree match {
137-
case Block(stats, expr) =>
138-
bindings ++= stats.map(liftPos)
139-
liftBindings(expr, liftPos)
137+
//case Block(stats, expr) =>
138+
// bindings ++= stats.map(liftPos)
139+
// liftBindings(expr, liftPos)
140140
case tree @ Inlined(call, stats, expr) =>
141141
bindings ++= stats.map(liftPos)
142142
val lifter = liftFromInlined(call)

0 commit comments

Comments
 (0)