Files
kotlin-fork/compiler/testData/diagnostics/tests/tailCalls/tailCallInBlockInParentheses.kt
T
2013-12-06 00:27:31 +04:00

6 lines
92 B
Kotlin

tailRecursive fun foo() {
return if (true) {
(foo())
}
else Unit.VALUE
}