e0d597a1bc
and tests for JET-168 Improve the parser for function and tuple types as receiver types
8 lines
146 B
Plaintext
8 lines
146 B
Plaintext
fun box() : String {
|
|
return if (int_invoker( { 7 } ) == 7) "OK" else "fail"
|
|
}
|
|
|
|
fun int_invoker(gen : fun () : Int) : Int {
|
|
return gen()
|
|
}
|