method reference: additional diagnostics for invalid method references (IDEA-149688)

This commit is contained in:
Anna Kozlova
2015-12-29 13:50:49 +01:00
parent 210217ecfa
commit 242cd356a7
11 changed files with 89 additions and 50 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="Invalid method reference: Integer cannot be converted to String">length</error>;
}
public static Integer length(String s) {