ArrayAccess supported in CF

This commit is contained in:
Andrey Breslav
2011-04-14 21:13:49 +04:00
parent e2fbc5f792
commit 6e2fd76f53
8 changed files with 111 additions and 31 deletions
@@ -0,0 +1,28 @@
== foo ==
fun foo() {
val a = new Array<Int>
3
a[10] = 4
2
a[10]
}
---------------------
l0:
<START>
r(new Array<Int>)
w(a)
r(3)
r(4)
r(10)
r(a)
r(=)
w(a[10])
r(2)
r(10)
r(a)
r(a[10])
l1:
<END>
error:
<ERROR>
=====================
+7
View File
@@ -0,0 +1,7 @@
fun foo() {
val a = new Array<Int>
3
a[10] = 4
2
a[10]
}