do not open captured wildcards on substitution; don't capture wildcards on getExtendsTypes for type parameters and their consequences

This commit is contained in:
Anna Kozlova
2015-12-02 10:17:29 +01:00
parent b9990696d3
commit 3a669178f5
27 changed files with 84 additions and 91 deletions
@@ -7,7 +7,7 @@ interface I<T>{
class C {
void bar(I<?> x) {
x.foo(a -> {
x.foo(y -> <error descr="Bad return type in lambda expression: capture of ? cannot be converted to capture of ?">a</error>);
x.foo<error descr="'foo(java.util.function.Function<capture<?>,capture<?>>)' in 'I' cannot be applied to '(<lambda expression>)'">(y -> a)</error>;
return a;
});
}