Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt

13 lines
205 B
Kotlin
Vendored

// IGNORE_BACKEND_WITHOUT_CHECK: JS
fun test() {
tailrec fun g3(counter : Int) {
if (counter > 0) { g3(counter - 1) }
}
g3(1000000)
}
fun box() : String {
test()
return "OK"
}