Files
kotlin/compiler/testData/codegen/classes/doubleEnclosedLocalVariable.jet
2011-12-20 22:56:13 +04:00

9 lines
178 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 : () -> Int) : Int {
return arg + f()
}