new inference: report inference errors of containing call for lambdas

This commit is contained in:
Anna Kozlova
2015-11-20 21:41:40 +01:00
parent 19a7ef3488
commit be2db1f940
9 changed files with 28 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ class NoInferenceResult {
m((String s1) -> s1.length());
m((String s1) -> s1);
m1<error descr="'m1(T)' in 'NoInferenceResult' cannot be applied to '(<lambda expression>)'">(() -> { })</error>;
m1(<error descr="Object is not a functional interface">() -> { }</error>);
Foo<String> foo = new Foo<String>();
foo.map(v -> null);