19 lines
293 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4916634
* @summary Wildcard capture
* @author gafter
*
* @compile/fail/ref=Capture.out -XDrawDiagnostics Capture.java
2007-12-01 00:00:00 +00:00
*/
class X<T> {}
class Capture {
void f(X<X<? extends Number>> x) {
f4(x);
}
<T> void f4(X<X<T>> x) {}
}