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
@@ -2,7 +2,7 @@ import java.util.*
fun <T> ArrayList<T>.findAll(predicate: (T) -> Boolean): ArrayList<T> {
val result = ArrayList<T>()
for(val t in this) {
for(t in this) {
if (predicate(t)) result.add(t)
}
return result
@@ -126,7 +126,8 @@ fun t8() : Boolean {
return x == 30.toShort()
}
fun t9(var x: Int) : Boolean {
fun t9(x0: Int) : Boolean {
var x = x0
while(x < 100) {
x++
}
@@ -145,7 +146,8 @@ fun t10() : Boolean {
return y == 2
}
fun t11(var x: Int) : Int {
fun t11(x0: Int) : Int {
var x = x0
val foo = {
x = x + 1
val bar = {