Files
kotlin/compiler/testData/codegen/box/functions/tailRecursion/recursiveInnerFunction.kt
2013-12-06 00:28:10 +04:00

11 lines
176 B
Kotlin

fun test() {
[tailRecursive] fun g3(counter : Int) {
if (counter > 0) { g3(counter - 1) }
}
g3(1000000)
}
fun box() : String {
test()
return "OK"
}