mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
167 B
Kotlin
Vendored
11 lines
167 B
Kotlin
Vendored
// IGNORE_BACKEND_WITHOUT_CHECK: JS
|
|
|
|
tailrec fun foo(x: Int) {
|
|
if (x == 0) return
|
|
return (foo(x - 1))
|
|
}
|
|
|
|
fun box(): String {
|
|
foo(1000000)
|
|
return "OK"
|
|
} |