mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
18 lines
365 B
Java
18 lines
365 B
Java
// "Fix method 'foo' parameters with bounded wildcards" "true-preview"
|
|
import java.util.List;
|
|
|
|
interface Xo {
|
|
void foo(List<? super String> s);
|
|
}
|
|
public class ErrWarn implements Xo {
|
|
public void <caret>foo(List<? super String> s) {
|
|
|
|
}
|
|
}
|
|
class D extends ErrWarn {
|
|
@Override
|
|
public void foo(List<? super String> s) {
|
|
super.foo(s);
|
|
}
|
|
}
|