Files
kotlin-fork/backend.native/tests/external/codegen/box/closures/recursiveClosure.kt
T
2017-03-13 15:31:46 +03:00

8 lines
161 B
Kotlin

fun foo(s: String): String {
fun bar(count: Int): String =
if (count == 0) s else bar(count - 1)
return bar(10)
}
fun box(): String = foo("OK")