testdata for IDEA-139214

This commit is contained in:
Anna Kozlova
2018-06-28 11:12:17 +03:00
parent 1c8d7cc8b0
commit 4198e09715
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,15 @@
class JavaClass {
interface I1<T> {
void id(T x);
}
static class C1<T> {
void id(T x) {
}
}
<error descr="'id(T)' in 'JavaClass.I1' clashes with 'id(T)' in 'JavaClass.C1'; both methods have same erasure, yet neither overrides the other">static class C2 extends C1<String> implements I1<Integer></error> {
public void id(Integer x) {
}
}
}