warn about static methods in interface with same erasure (IDEA-165927)

This commit is contained in:
Anna.Kozlova
2016-12-27 14:47:58 +01:00
parent a59edc4e4a
commit 9d9c62523d
3 changed files with 10 additions and 1 deletions
@@ -0,0 +1,5 @@
interface Test {
<error descr="'foo(A)' clashes with 'foo(B)'; both methods have same erasure">static <A, B> void foo(A a)</error> {}
static <A, B> void foo(B b) {}
}