2015-02-21 00:05:13 +00:00
|
|
|
/*
|
2016-12-15 00:56:11 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2015-02-21 00:05:13 +00:00
|
|
|
* @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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|