Files
kotlin-fork/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

28 lines
500 B
Plaintext
Vendored

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