Files
kotlin/compiler/testData/codegen/box/closures/recursiveClosure.kt
2019-11-19 11:00:09 +03:00

9 lines
191 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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")