Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt
Svetlana Isakova b71260f54e Moved tests
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03: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"
}