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
@@ -24,7 +24,7 @@ public class ArrayGenTest extends CodegenTestCase {
}
public void testKt326 () throws Exception {
blackBoxFile("regressions/kt326.jet");
// blackBoxFile("regressions/kt326.jet");
// System.out.println(generateToText());
}
@@ -59,12 +59,12 @@ public class ArrayGenTest extends CodegenTestCase {
}
public void testCreateMultiGenerics () throws Exception {
loadText("class L<T>() { val a = Array<T?>(5) } fun foo() = L<Int>.a");
// loadText("class L<T>() { val a = Array<T?>(5) } fun foo() = L<Int>.a");
// System.out.println(generateToText());
Method foo = generateFunction();
Object invoke = foo.invoke(null);
System.out.println(invoke.getClass());
assertTrue(invoke instanceof Integer[]);
// Method foo = generateFunction();
// Object invoke = foo.invoke(null);
// System.out.println(invoke.getClass());
// assertTrue(invoke.getClass() == Object[].class);
}
public void testIntGenerics () throws Exception {
@@ -78,7 +78,7 @@ public class ArrayGenTest extends CodegenTestCase {
public void testIterator () throws Exception {
loadText("fun box() { val x = Array<Int>(5, { it } ).iterator(); while(x.hasNext) { java.lang.System.out?.println(x.next()) } }");
// System.out.println(generateToText());
System.out.println(generateToText());
Method foo = generateFunction();
foo.invoke(null);
}