Updated test data and stdlib sources.

This commit is contained in:
Evgeny Gerashchenko
2013-02-12 02:19:55 +04:00
parent 105d2d72de
commit b9e5704057
43 changed files with 96 additions and 78 deletions
@@ -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--)
}
}