Files
kotlin-fork/compiler/testData/codegen/box/directInvokeOptimization/kt53202_funLiteral.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
134 B
Kotlin
Vendored

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