2d18dda3f2
Reviewed-by: vromero
20 lines
352 B
Java
20 lines
352 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8039214
|
|
* @summary Capture variable as an inference variable's lower bound
|
|
* @compile CaptureLowerBound.java
|
|
*/
|
|
|
|
public class CaptureLowerBound {
|
|
|
|
interface I<X1,X2> {}
|
|
static class C<T> implements I<T,T> {}
|
|
|
|
<X> void m(I<? extends X, X> arg) {}
|
|
|
|
void test(C<?> arg) {
|
|
m(arg);
|
|
}
|
|
|
|
}
|