mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
(cherry picked from commit 4e9a3f94cf1aedadd0b2c4699e168ccb3be0e405) IJ-CR-150708 GitOrigin-RevId: ced9d4595e513387ebf996bf8dd0894877ef0f3e
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());
|
|
}
|
|
} |