mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
13 lines
266 B
Kotlin
Vendored
13 lines
266 B
Kotlin
Vendored
|
|
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"
|
|
} |