mcimadamore@537: /* mcimadamore@537: * @test /nodynamiccopyright/ mcimadamore@914: * @bug 6939620 7020044 mcimadamore@537: * mcimadamore@914: * @summary Check that diamond works where LHS is supertype of RHS (nilary constructor) mcimadamore@537: * @author mcimadamore mcimadamore@537: * @compile/fail/ref=Neg06.out Neg06.java -XDrawDiagnostics mcimadamore@537: * mcimadamore@537: */ mcimadamore@537: mcimadamore@537: class Neg06 { mcimadamore@537: mcimadamore@537: static class CSuperFoo {} mcimadamore@537: static class CFoo extends CSuperFoo {} mcimadamore@537: mcimadamore@537: CSuperFoo csf1 = new CFoo<>(); mcimadamore@537: }