testdata for IDEA-57492

This commit is contained in:
anna
2012-10-23 21:08:42 +02:00
parent c743366b7a
commit c4666625ee
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,17 @@
abstract class A<T>{
abstract <S> S foo(S x, S y);
<S extends Number & Comparable<? extends Number>> void baz(A<S> a){}
void bar(A<Long> x, A<Integer> y){
baz(foo(x, y));
}
}
abstract class A1<T>{
abstract <S> S foo(S x, S y);
<T extends Number & Comparable<?>, S extends Number & Comparable<? extends T>> void baz(A1<S> a){}
void bar(A1<Long> x, A1<Integer> y){
baz(foo(x, y));
}
}