mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
17 lines
349 B
Java
17 lines
349 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 foo(List<? super String> s) {
|
|
|
|
}
|
|
}
|
|
class D extends ErrWarn {
|
|
@Override
|
|
public void foo(List<String> s) {
|
|
super.foo(s);
|
|
}
|
|
} |