mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
[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:
committed by
intellij-monorepo-bot
parent
7c1c056980
commit
f47a4e818b
@@ -16,7 +16,7 @@ class Test {
|
||||
|
||||
class Test1 {
|
||||
{
|
||||
Runnable b = Test1 :: <error descr="Reference to 'length' is ambiguous, both 'length(String)' and 'length(Integer)' match">length</error>;
|
||||
Runnable b = Test1 :: <error descr="Cannot resolve method 'length'">length</error>;
|
||||
Comparable<String> c = Test1 :: length;
|
||||
Comparable<Integer> c1 = Test1 :: length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user