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--)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class C(x: Int, val y : Int) {
|
||||
fun initChild(var x: Int) : java.lang.Object {
|
||||
fun initChild(x0: Int) : java.lang.Object {
|
||||
var x = x0
|
||||
return object : java.lang.Object() {
|
||||
override fun toString(): String? {
|
||||
x = x + y
|
||||
|
||||
Reference in New Issue
Block a user