Files
Mikhail Pyltsin 7dc38ce3d3 IJ-CR-101653 [intention-preview] SameErasureButDifferentMethodsFix. Added tests for preview
GitOrigin-RevId: 0e5dff40ab0e25033b6ca454e8737e46f18c1767
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);
}
}