mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-109576
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
public class Test {
|
||||
public void m() {}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.List;
|
||||
|
||||
class TestSubclass extends Test {
|
||||
}
|
||||
|
||||
|
||||
class Base {
|
||||
public void main(List<Test> tests) {
|
||||
for (Test test : tests) {}
|
||||
}
|
||||
}
|
||||
|
||||
class Inheritor extends Base {
|
||||
@Override
|
||||
public void main(List<Test> tests) {
|
||||
super.main(tests);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
public void m() {}
|
||||
}
|
||||
|
||||
|
||||
class Base {
|
||||
public void main(List<Test> tests) {
|
||||
for (Test test : tests) {}
|
||||
}
|
||||
}
|
||||
|
||||
class Inheritor extends Base {
|
||||
@Override
|
||||
public void main(List<Test> tests) {
|
||||
super.main(tests);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user