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:
+25
@@ -0,0 +1,25 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
var xl = 0L // Long, size 2
|
||||
var xi = 0 // Int, size 1
|
||||
var xd = 0.0 // Double, size 2
|
||||
|
||||
run {
|
||||
xl++
|
||||
xd += 1.0
|
||||
xi++
|
||||
}
|
||||
|
||||
run {
|
||||
run {
|
||||
xl++
|
||||
xd += 1.0
|
||||
xi++
|
||||
}
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 NEW
|
||||
Reference in New Issue
Block a user