mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
19 lines
352 B
Java
19 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);
|
|
}
|
|
|
|
}
|