mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
inline superclass: proceed arrays (IDEA-152539)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
public static Test[] getArray() {
|
||||
return new Test[0];
|
||||
}
|
||||
|
||||
public static Test[] getArrayWithInitializer() {
|
||||
return new Test[]{};
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Super {
|
||||
public static Super[] getArray() {
|
||||
return new Super[0];
|
||||
}
|
||||
|
||||
public static Super[] getArrayWithInitializer() {
|
||||
return new Super[]{};
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user