method references: don't swallow errors during method ref inference (IDEA-179706)

This commit is contained in:
Anna.Kozlova
2017-09-29 12:30:27 +02:00
parent 81730cbe8e
commit 9728678ff4
13 changed files with 76 additions and 18 deletions

View File

@@ -2,7 +2,7 @@ class Test {
{
Runnable b = Test :: <error descr="Cannot resolve method 'length'">length</error>;
Comparable<String> c = Test :: length;
Comparable<Integer> c1 = Test :: <error descr="Cannot resolve method 'length'">length</error>;
Comparable<Integer> c1 = Test :: <error descr="Incompatible types: Integer is not convertible to String">length</error>;
}
public static Integer length(String s) {