check whether wildcard bound or not (IDEA-57343)

This commit is contained in:
anna
2010-08-24 17:33:26 +04:00
parent a9169b5b20
commit 60bdcacc70
3 changed files with 9 additions and 1 deletions
@@ -0,0 +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>;
}
<T> void bar(D<? extends T> x, D<? super T> y){}
}