Neg09a.java revision 3591:8382e92dd1f9
131744Shelbig/*
231744Shelbig * @test /nodynamiccopyright/
331744Shelbig * @bug 7020044 8062373
431744Shelbig *
531744Shelbig * @summary  Check that diamond is not allowed with anonymous inner class expressions at source < 9
631744Shelbig * @author Maurizio Cimadamore
731744Shelbig * @compile/fail/ref=Neg09a.out Neg09a.java -source 8 -XDrawDiagnostics
831744Shelbig *
931744Shelbig */
1031744Shelbig
1131744Shelbigclass Neg09a {
1231744Shelbig    class Member<X> {}
1331744Shelbig
1431744Shelbig    void testSimple() {
1531744Shelbig        Member<?> m1 = new Member<>() {};
1631744Shelbig    }
1731744Shelbig}
1831744Shelbig