mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
13 lines
237 B
Kotlin
13 lines
237 B
Kotlin
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun test() {
|
|
[tailRecursive] fun g3(counter : Int, x : Any) {
|
|
if (counter > 0) { g3(counter - 1, "tail") }
|
|
}
|
|
g3(1000000, "test")
|
|
}
|
|
|
|
fun box() : String {
|
|
test()
|
|
return "OK"
|
|
} |