inline superclass: proceed arrays (IDEA-152539)

This commit is contained in:
Anna Kozlova
2016-03-03 18:54:30 +01:00
parent db30803bee
commit eeb4e4f49f
5 changed files with 27 additions and 3 deletions
@@ -0,0 +1,9 @@
class Test {
public static Test[] getArray() {
return new Test[0];
}
public static Test[] getArrayWithInitializer() {
return new Test[]{};
}
}
@@ -0,0 +1,10 @@
class Super {
public static Super[] getArray() {
return new Super[0];
}
public static Super[] getArrayWithInitializer() {
return new Super[]{};
}
}
@@ -0,0 +1 @@
class Test extends Super {}
@@ -71,6 +71,7 @@ public class InlineSuperClassTest extends MultiFileTestCase {
public void testInterfaceHierarchyWithSubstitution() { doTest(); }
public void testTypeParameterBound() { doTest();}
public void testInlineInterfaceDoNotChangeConstructor() { doTest(); }
public void testArrayTypeElements() { doTest(); }
private void doTest() {
doTest(false, false);