e0d597a1bc
and tests for JET-168 Improve the parser for function and tuple types as receiver types
9 lines
163 B
Plaintext
9 lines
163 B
Plaintext
fun box() : String {
|
|
val cl = 39
|
|
return if (sum(200, { cl }) == 239) "OK" else "FAIL"
|
|
}
|
|
|
|
fun sum(arg:Int, f : fun () : Int) : Int {
|
|
return arg + f()
|
|
}
|