blob: 68369ae57eba0f12a39ddb5cd3053570a6658af1 [file] [log] [blame]
fun foo(x: Int) {}
fun loop(times : Int) {
var left = times
while(left > 0) {
val u : (value : Int) -> Unit = {
foo(it)
}
u(left--)
}
}
fun box() : String {
loop(5)
return "OK"
}