[java] method references overload resolution (IDEA-276614; IDEA-276613)

check static conflicts between applicable methods vs most specific method of another search, as the spec says

GitOrigin-RevId: d11508968a88888c41f6d69e416ab8fa5e915e5d
This commit is contained in:
Anna Kozlova
2021-08-27 12:37:25 +02:00
committed by intellij-monorepo-bot
parent 7c1c056980
commit f47a4e818b
5 changed files with 29 additions and 43 deletions

View File

@@ -122,7 +122,7 @@ class MyTest4 {
}
{
bar(MyTest4:: <error descr="Reference to 'foo' is ambiguous, both 'foo(int)' and 'foo(String)' match">foo</error>);
bar(MyTest4:: <error descr="Cannot resolve method 'foo'">foo</error>);
}
}