Files
2023-02-03 00:32:39 +00:00

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);
}
}