Files
kotlin-fork/compiler/testData/codegen/box/functions/nothisnoclosure.kt
T
Mikhael Bogdanov 494828f4cf Unmute jvm ir-tests
2018-08-15 10:26:28 +03:00

17 lines
234 B
Kotlin
Vendored

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"
}