Files
kotlin-fork/compiler/testData/codegen/box/directInvokeOptimization/kt53202.kt
T
Steven Schäfer 6f0ff6aeb0 IR: Fix scope transparency in ReturnableBlockLowering
An IrReturnableBlock introduces a new variable scope and shouldn't be
replaced with a transparent IrComposite block.
2022-07-29 01:06:44 +02:00

11 lines
111 B
Kotlin
Vendored

fun box(): String {
val a = "OK"
val c = {
val b = a
b
}.invoke()
return a
}