Files
kotlin-fork/compiler/testData/codegen/box/functions/tailRecursion/recursiveCallInLambda.kt
T
Valentin Kipyatkov c93b78c6dc Fixed diagnostics tests
2014-10-31 21:07:50 +03:00

14 lines
218 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"
}