mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
14 lines
296 B
Kotlin
Vendored
14 lines
296 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
fun test(a: String, b: String): String {
|
|
return a + b;
|
|
}
|
|
|
|
fun box(): String {
|
|
var res = "";
|
|
val call = test(b = {res += "K"; "K"}(), a = {res+="O"; "O"}())
|
|
|
|
if (res != "KO" || call != "OK") return "fail: $res != KO or $call != OK"
|
|
|
|
return "OK"
|
|
} |