/** * @test /nodynamiccopyright/ * @bug 7154127 * @summary Inference cleanup: remove bound check analysis from visitors in Types.java * @compile/fail/ref=T7154127.out -XDrawDiagnostics T7154127.java */ class T7154127 { static class B {} static class D extends B {} static class E extends B {} static class Triple { } static , U extends B> Triple m() { return null; } void test() { Triple t = m(); } }