Files
kotlin/compiler/testData/codegen/box/functions/functionExpression/insideGenericLambda.kt
2019-11-19 11:00:09 +03:00

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"
}