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

10 lines
162 B
Kotlin
Vendored

<!NO_TAIL_CALLS_FOUND!>tailrec fun foo()<!> {
fun bar() {
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
}
}
fun box(): String {
foo()
return "OK"
}