Files
kotlin-fork/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt
T
Zalim Bashorov a27572af49 Fix failed tests
2016-11-09 21:41:12 +03:00

17 lines
308 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
<!NO_TAIL_CALLS_FOUND!>tailrec fun foo()<!> {
bar {
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
}
}
fun bar(a: Any) {}
fun box(): String {
foo()
return "OK"
}