replace <? extends Object> with <?> during substitution (IDEA-64775)

This commit is contained in:
anna
2012-04-16 14:24:33 +02:00
parent 0c15dccf23
commit 654f6cd973
3 changed files with 9 additions and 2 deletions
@@ -1,6 +1,6 @@
class D<T> {
void foo(D<?> x){
bar<error descr="'bar(D<? extends java.lang.Object>, D<? super java.lang.Object>)' in 'D' cannot be applied to '(D<capture<?>>, D<capture<?>>)'">(x,x)</error>;
bar<error descr="'bar(D<?>, D<? super java.lang.Object>)' in 'D' cannot be applied to '(D<capture<?>>, D<capture<?>>)'">(x,x)</error>;
}
<T> void bar(D<? extends T> x, D<? super T> y){}
}