mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
16 lines
362 B
Kotlin
Vendored
16 lines
362 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
|
|
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"
|
|
} |