1/*
2 * @test /nodynamiccopyright/
3 * @bug 8039214
4 * @summary Capture variable as an inference variable's lower bound
5 * @compile CaptureLowerBound.java
6 * @compile/fail/ref=CaptureLowerBound7.out -Xlint:-options -source 7 -XDrawDiagnostics CaptureLowerBound.java
7 */
8
9public class CaptureLowerBound {
10
11    interface I<X1,X2> {}
12    static class C<T> implements I<T,T> {}
13
14    <X> void m(I<? extends X, X> arg) {}
15
16    void test(C<?> arg) {
17      m(arg);
18    }
19
20}
21