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:
+9
@@ -0,0 +1,9 @@
|
||||
inline fun runCrossInline(crossinline f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var x = ""
|
||||
runCrossInline { x = "OK" }
|
||||
return x
|
||||
}
|
||||
Reference in New Issue
Block a user