Files
kotlin-fork/idea/testData/codegen/classes/enclosingLocalVariable.jet
T
Andrey Breslav e0d597a1bc JET-140 Change function type syntax
and tests for
JET-168 Improve the parser for function and tuple types as receiver types
2011-07-06 18:18:11 +04:00

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()
}