mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
show error if override generics method in raw inheritor (comment IDEA-19718)
This commit is contained in:
+9
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user