mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-27 09:29:10 +07:00
19 lines
181 B
Java
19 lines
181 B
Java
|
|
interface IA {
|
|
void a();
|
|
}
|
|
|
|
interface IB {
|
|
void b();
|
|
}
|
|
|
|
interface IC<T extends IA>{
|
|
T c();
|
|
}
|
|
|
|
class K {
|
|
void foo(IC<? extends IB> x){
|
|
IA m = x.c();
|
|
m.a();
|
|
}
|
|
} |