2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 18:03:51 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4916567
|
2015-05-15 18:03:51 -07:00
|
|
|
* @summary integrate improved wildcard substitution from CPH
|
2007-12-01 00:00:00 +00:00
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 18:03:51 -07:00
|
|
|
* @compile/fail/ref=ParamCast.out -XDrawDiagnostics ParamCast.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class A<T> {}
|
|
|
|
class B<S, T> extends A<T> {}
|
|
|
|
|
|
|
|
class Main {
|
|
|
|
void f(A<String> as) {
|
|
|
|
Object o = (B<?, Integer>) as;
|
|
|
|
}
|
|
|
|
}
|