mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
15 lines
272 B
Kotlin
Vendored
15 lines
272 B
Kotlin
Vendored
// DONT_RUN_GENERATED_CODE: JS
|
|
|
|
tailrec fun test(x : Int = 0, e : Any = "a") {
|
|
if (x < 100000 && !e.equals("a")) {
|
|
throw IllegalArgumentException()
|
|
}
|
|
if (x > 0) {
|
|
test(x - 1)
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
test(100000, "b")
|
|
return "OK"
|
|
} |