highlight all pairs of methods with same erasures (IDEA-124116)

This commit is contained in:
Anna Kozlova
2014-04-23 16:33:43 +02:00
parent f3efd90a0d
commit 54ced00cb4
4 changed files with 26 additions and 9 deletions
@@ -0,0 +1,9 @@
import java.util.List;
class MyClass {
<error descr="'method1(Comparable<Integer>)' clashes with 'method1(Comparable<Boolean>)'; both methods have same erasure">void method1 (Comparable<Integer> c)</error> {}
void method1(Comparable<Boolean> c) {}
<error descr="'method2(List<Integer>)' clashes with 'method2(List<Boolean>)'; both methods have same erasure">void method2(List<Integer> l)</error> {}
void method2(List<Boolean> l) {}
}