Files
kotlin-fork/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt.txt
T
2024-02-16 10:19:38 +00:00

29 lines
501 B
Kotlin
Vendored

fun box(): String {
var result: String = "fail"
try { // BLOCK
f() /*~> Unit */
}
catch (e: Exception){ // BLOCK
result = "OK"
}
return f(, f2 = local fun <anonymous>(): String {
return "O"
}
).plus(other = f(f1 = local fun <anonymous>(): String {
return "K"
}
))
}
fun f(f1: Function0<String> = local fun <anonymous>(): String {
return f2.invoke()
}
, f2: Function0<String> = local fun <anonymous>(): String {
return "FAIL"
}
): String {
return f1.invoke()
}