mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
17 lines
312 B
Kotlin
Vendored
17 lines
312 B
Kotlin
Vendored
fun box(): String {
|
|
fun foo(x: Int, s: String): String {
|
|
fun bar(y: Int) {
|
|
fun baz(z: Int, k: Int) {
|
|
foo(x - 1 + k, "Fail")
|
|
}
|
|
|
|
baz(y, 0)
|
|
}
|
|
|
|
if (x > 0) bar(x)
|
|
return s
|
|
}
|
|
|
|
return foo(1, "OK")
|
|
}
|