mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
11 lines
186 B
Kotlin
Vendored
11 lines
186 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
fun <T> block(block: () -> T): T = block()
|
|
fun foo() {}
|
|
|
|
fun test(): () -> Unit = block { fun() = foo() }
|
|
|
|
fun box(): String {
|
|
test()
|
|
return "OK"
|
|
}
|