overload resolution: ensure type parameters of containing class are fixed during most specific inference (IDEA-205886)

GitOrigin-RevId: 01b3a6f25c68e27475a053c74a7765e84147beca
This commit is contained in:
Anna Kozlova
2019-06-06 15:57:14 +02:00
committed by intellij-monorepo-bot
parent e530259307
commit b540bb262e
4 changed files with 24 additions and 22 deletions

View File

@@ -0,0 +1,13 @@
class MyTest {
static class Foo<X> {
<T> void test(X x) { }
}
static class Bar extends Foo<Integer> {
void test(Double x) { }
void call() {
test<error descr="Ambiguous method call: both 'Bar.test(Double)' and 'Foo.test(Integer)' match">(null)</error>;
}
}
}