mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
20 lines
254 B
Java
20 lines
254 B
Java
// "Make 'a' implement 'b'" "true"
|
|
interface b<T> {
|
|
void f(T t);
|
|
}
|
|
|
|
class a implements b<Integer> {
|
|
public void f(Integer integer) {
|
|
|
|
}
|
|
}
|
|
|
|
class X {
|
|
void h(b<? super Integer> i) {
|
|
|
|
}
|
|
|
|
void g() {
|
|
h(new a());
|
|
}
|
|
} |