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 (nilary constructor)
536N/A * @author mcimadamore
536N/A * @compile/fail/ref=Neg06.out Neg06.java -XDrawDiagnostics
536N/A *
536N/A */
536N/A
536N/Aclass Neg06 {
536N/A
536N/A static class CSuperFoo<X> {}
536N/A static class CFoo<X extends Number> extends CSuperFoo<X> {}
536N/A
536N/A CSuperFoo<String> csf1 = new CFoo<>();
536N/A}