show error if override generics method in raw inheritor (comment IDEA-19718)

This commit is contained in:
anna
2013-05-07 13:43:26 +02:00
parent 3f6f5b5a9e
commit a9a42e512b
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,9 @@
import java.util.List;
<error descr="'method(List<String>)' in 'Implementation' clashes with 'method(List<String>)' in 'IfcWithGenericMethod'; both methods have same erasure, yet neither overrides the other">class Implementation implements IfcWithGenericMethod</error> {
public void method(final List<String> strings) {}
}
interface IfcWithGenericMethod<T> {
void method(List<String> strings);
}