mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
17 lines
344 B
Java
17 lines
344 B
Java
interface Base {
|
|
Base[] EMPTY_ARRAY = new Base[0];
|
|
}
|
|
|
|
interface Derived1 extends Base {}
|
|
|
|
interface Derived2 extends Base {
|
|
Derived2[] EMPTY_ARRAY = new Derived2[0];
|
|
}
|
|
|
|
class Implementor implements Derived1, Derived2 {
|
|
//Implementor[] EMPTY_ARRAY = new Implementor[0];
|
|
Derived2[] f() {
|
|
return <caret>EMPTY_ARRAY; //conflict
|
|
}
|
|
}
|