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