array codegen bugs

This commit is contained in:
Alex Tkachman
2011-09-28 10:54:45 +03:00
parent a06aa17a5f
commit 8a927d70d7
9 changed files with 120 additions and 17 deletions
@@ -0,0 +1,25 @@
namespace test
class List<T>() {
val a : Array<T> = Array<T>(1)
}
fun box() : String {
val a = List<String>()
a.a[0] = "1"
println(a.a[0])
val b = List<Int?>()
b.a[0] = 10
println(b.a[0])
val c = List<Array<Int>>()
c.a[0] = Array<Int>(4)
println(c.a[0].size)
return "OK"
}
fun println(s : Any?) {
System.out?.println(s);
}