Updated test data and stdlib sources.
This commit is contained in:
@@ -58,7 +58,7 @@ fun box() : String {
|
||||
val filtered = x where { it % 2 == 0 }
|
||||
val xx = x select { it * 2 }
|
||||
var res = 0
|
||||
for (val x in xx)
|
||||
for (x in xx)
|
||||
res += x
|
||||
return if (res == 10100) "OK" else "fail"
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
fun foo(x: Int) {}
|
||||
|
||||
fun loop(var times : Int) {
|
||||
while(times > 0) {
|
||||
fun loop(times : Int) {
|
||||
var left = times
|
||||
while(left > 0) {
|
||||
val u : (value : Int) -> Unit = {
|
||||
foo(it)
|
||||
}
|
||||
u(times--)
|
||||
u(left--)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user