dac0fc7397
With the mangling added in 488418d960, there's no longer any risk in
writing "special" function name ("<anonymous>" in this case) to the
local variable table.
#KT-34356 Fixed
10 lines
156 B
Kotlin
Vendored
10 lines
156 B
Kotlin
Vendored
fun <T> block(block: () -> T): T = block()
|
|
fun foo() {}
|
|
|
|
fun test(): () -> Unit = block { fun() = foo() }
|
|
|
|
fun box(): String {
|
|
test()
|
|
return "OK"
|
|
}
|