536N/A/*
536N/A * @test /nodynamiccopyright/
913N/A * @bug 7020044
536N/A *
913N/A * @summary Check that diamond is not allowed with anonymous inner class expressions
913N/A * @author Maurizio Cimadamore
536N/A * @compile/fail/ref=Neg09.out Neg09.java -XDrawDiagnostics
536N/A *
536N/A */
536N/A
536N/Aclass Neg09 {
913N/A class Member<X> {}
913N/A
913N/A static class Nested<X> {}
536N/A
913N/A void testSimple() {
913N/A Member<?> m1 = new Member<>() {};
913N/A Nested<?> m2 = new Nested<>() {};
913N/A }
913N/A
913N/A void testQualified() {
913N/A Member<?> m1 = this.new Member<>() {};
913N/A Nested<?> m2 = new Neg09.Nested<>() {};
913N/A }
536N/A}