536N/A/*
536N/A * @test /nodynamiccopyright/
913N/A * @bug 6939620 7020044
536N/A *
913N/A * @summary Check that diamond works where LHS is supertype of RHS (1-ary constructor)
536N/A * @author mcimadamore
536N/A * @compile/fail/ref=Neg07.out Neg07.java -XDrawDiagnostics
536N/A *
536N/A */
536N/A
536N/Aclass Neg07 {
536N/A static class SuperFoo<X> {}
536N/A static class Foo<X extends Number> extends SuperFoo<X> {
536N/A Foo(X x) {}
536N/A }
536N/A
536N/A SuperFoo<String> sf1 = new Foo<>("");
536N/A}