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