/* * @test /nodynamiccopyright/ * @bug 8075793 * @summary Capture variable as an inference lower bound followed by a member reference * @compile/fail/ref=CaptureLowerBoundDeref.out -XDrawDiagnostics CaptureLowerBoundDeref.java * */ class CaptureLowerBoundDeref { interface Wrapper { I get(); } interface I {} interface K { void take(T arg); } K m(I arg) { return null; } void test(Wrapper w) { m(w.get()).take(new Object()); } }