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