Files
kotlin-fork/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailrecWithExplicitObjectDispatcher.kt
T

17 lines
285 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR_ES6
// DONT_RUN_GENERATED_CODE: JS
object O {
tailrec fun rec(i: Int) {
if (i <= 0) return
O.rec(i - 1)
}
}
fun box(): String {
O.rec(100000)
return "OK"
}