KT-1589: Array<T>(size) renamed to arrayOfNulls

This commit is contained in:
Alex Tkachman
2012-04-02 14:30:37 +03:00
parent a1582e1911
commit ffbce7fe1e
21 changed files with 24 additions and 24 deletions
@@ -43,7 +43,7 @@ public class ArrayGenTest extends CodegenTestCase {
}
public void testCreateMultiIntNullable () throws Exception {
loadText("fun foo() = Array<Array<Int?>> (5, { Array<Int?>(it) })");
loadText("fun foo() = Array<Array<Int?>> (5, { arrayOfNulls<Int>(it) })");
Method foo = generateFunction();
Integer[][] invoke = (Integer[][]) foo.invoke(null);
assertEquals(invoke[2].length, 2);
@@ -398,7 +398,7 @@ public class NamespaceGenTest extends CodegenTestCase {
}
public void testArrayNewNullable() throws Exception {
loadText("fun foo() = Array<Int?>(4)");
loadText("fun foo() = arrayOfNulls<Int>(4)");
// System.out.println(generateToText());
final Method main = generateFunction();
Integer[] result = (Integer[]) main.invoke(null);