mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
180 B
Kotlin
Vendored
9 lines
180 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: 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)
|