mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:08:51 +07:00
21 lines
283 B
Java
21 lines
283 B
Java
// "Make 'a' implement 'b'" "true-preview"
|
|
interface b<T> {
|
|
void f(T t);
|
|
}
|
|
|
|
class a implements b<Integer> {
|
|
@Override
|
|
public void f(Integer integer) {
|
|
<caret>
|
|
}
|
|
}
|
|
|
|
class X {
|
|
void h(b<? super Integer> i) {
|
|
|
|
}
|
|
|
|
void g() {
|
|
h(new a());
|
|
}
|
|
} |