do not open capture for upper level wildcards with equals constraint (IDEA-57439)

This commit is contained in:
anna
2013-08-06 20:48:32 +02:00
parent ad657339ff
commit c8cc567c52
4 changed files with 46 additions and 2 deletions
@@ -4,7 +4,7 @@ class A<T> {
}
void bar(A<?> x){
baz<error descr="'baz(A<A<?>>)' in 'A' cannot be applied to '(A<A<capture<?>>>)'">(x.foo())</error>;
baz<error descr="'baz(A<A<? extends S>>)' in 'A' cannot be applied to '(A<A<capture<?>>>)'">(x.foo())</error>;
}
<S> void baz(A<A<? extends S>> x){}