Files
kotlin/compiler/testData/codegen/classes/doubleEnclosedLocalVariable.jet
2011-10-20 16:21:18 +02:00

9 lines
180 B
Plaintext

fun box() : String {
val cl = 39
return if (sum(200, { val ff = {cl}; ff() }) == 239) "OK" else "FAIL"
}
fun sum(arg:Int, f : fun () : Int) : Int {
return arg + f()
}