Files
kotlin-fork/compiler/testData/codegen/functions/nothisnoclosure.jet
T
2011-12-20 22:56:13 +04:00

13 lines
215 B
Plaintext

fun loop(var times : Int) {
while(times > 0) {
val u : (value : Int) -> Unit = {
System.out?.println(it)
}
u(times--)
}
}
fun box() : String {
loop(5)
return "OK"
}