overload resolution: ignore static methods from super interface (IDEA-212406)

GitOrigin-RevId: b7d5a8433fc6c96aa3d0a0208976dc9bee7cad97
This commit is contained in:
Anna Kozlova
2019-05-13 21:25:11 +02:00
committed by intellij-monorepo-bot
parent 50895e6bba
commit 6c0caa5601
2 changed files with 14 additions and 1 deletions

View File

@@ -12,4 +12,17 @@ interface Test {
static void of(String... lists) { }
}
interface Entry<T> { }
interface ClassA<T> {
static <T> void f(Iterable<T> values) {
}
}
interface ClassB<T> extends ClassA<Entry<T>> {
static <T> void f(Iterable<? extends Entry<? extends T>> values) {}
static void m(Iterable<Entry<String>> x) {
f(x);
}
}