Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt
2018-06-09 19:15:38 +03:00

14 lines
225 B
Kotlin
Vendored

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