Files
kotlin/compiler/testData/codegen/box/closures/closureInsideClosure/threeLevels.kt
Alexander Udalov 9007a6214a Fix closure's reference to outer closure
#KT-3276 Fixed
2013-01-29 22:41:58 +04:00

18 lines
261 B
Kotlin
Vendored

fun box(): String {
fun foo(x: Int) {
fun bar(y: Int) {
fun baz(z: Int) {
foo(x - 1)
}
baz(y)
}
if (x > 0) bar(x)
}
foo(1)
return "OK"
}