overload resolution: check method hiding for static only (IDEA-183712)

non-static methods should already be covered by same signatures check
This commit is contained in:
Anna.Kozlova
2017-12-13 13:44:11 +01:00
parent 14a9d09035
commit 1d6641db80
3 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
class X {
void method(String t) { }
}
class Y<S extends CharSequence> extends X {
void method(S s) { }
}
class Test {
void x(final Y<String> err) {
err.method<error descr="Ambiguous method call: both 'Y.method(String)' and 'X.method(String)' match">("")</error>;
}
}