Files
kotlin/compiler/testData/codegen/box/functions/tailRecursion/recursiveInnerFunction.kt
2013-12-05 23:53:08 +04:00

11 lines
201 B
Kotlin

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