Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt
2015-09-04 17:23:26 +03:00

13 lines
211 B
Kotlin
Vendored

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