Files
kotlin/compiler/testData/codegen/box/callableReference/function/local/recursiveClosure.kt
2018-06-28 12:26:41 +02:00

9 lines
176 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun foo(until: Int): String {
fun bar(x: Int): String =
if (x == until) "OK" else bar(x + 1)
return (::bar)(0)
}
fun box() = foo(10)