Files
kotlin-fork/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLocalFunction.kt
T
2023-01-17 18:14:17 +00:00

14 lines
223 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun foo() {
fun bar() {
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
}
}
fun box(): String {
foo()
return "OK"
}