Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt
Denis Zharkov 849b8acbf8 Replace annotations with brackets in testData
Just in tests that changed after deprecation
2015-05-07 22:36:16 +03:00

11 lines
175 B
Kotlin

fun test() {
@tailRecursive fun g3(counter : Int) {
if (counter > 0) { g3(counter - 1) }
}
g3(1000000)
}
fun box() : String {
test()
return "OK"
}