do not open capture when method call type is calculated

This commit is contained in:
Anna Kozlova
2015-12-03 12:18:25 +01:00
parent 47efd29972
commit c16a53a9fb
15 changed files with 55 additions and 38 deletions
@@ -7,7 +7,7 @@ interface I<T>{
class C {
void bar(I<?> x) {
x.foo(a -> {
x.foo<error descr="'foo(java.util.function.Function<capture<?>,capture<?>>)' in 'I' cannot be applied to '(<lambda expression>)'">(y -> a)</error>;
x.foo(y -> <error descr="Bad return type in lambda expression: capture of ? cannot be converted to capture of ?">a</error>);
return a;
});
}