method reference: preserve all conflicts to have navigation target

This commit is contained in:
Anna Kozlova
2015-12-10 12:52:02 +01:00
parent 65b5b7c840
commit a04d90243b
6 changed files with 11 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ class Test {
class Test1 {
{
Runnable b = Test1 :: <error descr="Cannot resolve method 'length'">length</error>;
<error descr="Incompatible types. Found: '<method reference>', required: 'java.lang.Runnable'">Runnable b = Test1 :: length;</error>
Comparable<String> c = Test1 :: length;
Comparable<Integer> c1 = Test1 :: length;
}