Addded DefaultCallMask class and extended interface for argument generation
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user