mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
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:
@@ -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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user