Make Array<T>(size, init) a constructor of Array

It's not marked as inline, this is why 'crossinline' was added in
jaggedArray.kt/jaggedDeep.kt. Will be fixed in the following commits
This commit is contained in:
Alexander Udalov
2016-01-21 22:22:00 +03:00
parent 18238bd6f3
commit 04026dbe84
15 changed files with 123 additions and 380 deletions
@@ -28,26 +28,26 @@ public final class StandardClassesTest extends SingleFileTranslationTest {
fooBoxTest();
}
public void testArrayAccess() throws Exception {
fooBoxTest();
}
public void testArrayIsFilledWithNulls() throws Exception {
fooBoxTest();
}
public void testArrayFunctionConstructor() throws Exception {
fooBoxTest();
}
public void testArraySize() throws Exception {
fooBoxTest();
}
public void testArrayConstructorsWithLambda() throws Exception {
checkFooBoxIsOk();
}
//TODO: this feature in not supported for some time
//TODO: support it. Probably configurable.
// (expected = JavaScriptException.class)