Files
2023-11-14 11:01:24 +00:00

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