mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
17 lines
322 B
Kotlin
Vendored
17 lines
322 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND_WITHOUT_CHECK: JS
|
|
|
|
<!NO_TAIL_CALLS_FOUND!>tailrec fun foo()<!> {
|
|
bar {
|
|
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
|
|
}
|
|
}
|
|
|
|
fun bar(a: Any) {}
|
|
|
|
fun box(): String {
|
|
foo()
|
|
return "OK"
|
|
} |