new inference: overload resolution for SAM return type for implicit lambda should be ignored

This commit is contained in:
anna
2013-09-25 16:07:57 +02:00
parent 66926021e9
commit f5257087e9
19 changed files with 43 additions and 39 deletions

View File

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