mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
24 lines
401 B
Java
24 lines
401 B
Java
class Test {
|
|
|
|
public static void main(String[] args) {
|
|
MyCar myCar=new MyCar();
|
|
myCar.get<caret>
|
|
}
|
|
|
|
}
|
|
|
|
class MyCar<C extends MyDoor> extends AbstractCar<C> implements Car{ }
|
|
|
|
abstract class AbstractCar<C extends Door> {
|
|
public C get() {}
|
|
}
|
|
|
|
interface Car {
|
|
public CarDoor get();
|
|
}
|
|
|
|
interface MyDoor extends CarDoor{}
|
|
|
|
interface CarDoor extends Door{}
|
|
|
|
interface Door {} |