getting rid of TypeInfo

This commit is contained in:
Alex Tkachman
2012-02-21 14:54:00 +02:00
parent 0ed8e19eaf
commit 8b622f97f4
139 changed files with 209 additions and 2186 deletions
@@ -1,6 +1,6 @@
package test
class List<T>(len: Int) {
class List<T>(len: Int, cls : java.lang.Class) {
val a : Array<T?> = Array<T?>(len)
fun reverse() {
@@ -2,11 +2,7 @@ import std.*
val test = "lala".javaClass
val test2 = typeinfo<Int>().javaClassForType
fun box(): String {
if(test.getCanonicalName() != "java.lang.String") return "fail"
System.out?.println(test2.getCanonicalName())
if(test2.getCanonicalName() != "java.lang.Integer") return "fail"
return "OK"
}