Files
kotlin-fork/compiler/testData/codegen/box/closures/closureInsideClosure/varAsFunInsideLocalFun.kt
T
2013-01-29 22:41:58 +04:00

16 lines
184 B
Kotlin

//KT-3276
fun box(): String {
fun rec(n : Int) {
val x = { (m : Int) ->
if (n > 0) rec(n - 1)
}
x(0)
}
rec(5)
return "OK"
}