KT-5248 Don't wrap variable if it is captured only in inlined closures
Remove non-escaping Ref's on bytecode postprocessing pass.
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test() {
|
||||
var x = 0
|
||||
run {
|
||||
run {
|
||||
run {
|
||||
++x
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 0 NEW
|
||||
// 0 GETFIELD
|
||||
// 0 PUTFIELD
|
||||
Reference in New Issue
Block a user