Files
kotlin/compiler/testData/codegen/box/functions/tailRecursion/recursiveCallInLambda.kt

13 lines
217 B
Kotlin

// !DIAGNOSTICS: -UNUSED_PARAMETER
<!NO_TAIL_CALLS_FOUND!>tailRecursive fun foo()<!> {
bar {
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
}
}
fun bar(a: Any) {}
fun box(): String {
foo()
return "OK"
}