1/*
2 * @test /nodynamiccopyright/
3 * @bug 7020044 8062373
4 *
5 * @summary  Check that diamond is not allowed with anonymous inner class expressions at source < 9
6 * @author Maurizio Cimadamore
7 * @compile/fail/ref=Neg09c.out Neg09c.java -source 8 -XDrawDiagnostics
8 *
9 */
10
11class Neg09c {
12    class Member<X> {}
13
14    void testQualified() {
15        Member<?> m1 = this.new Member<>() {};
16    }
17}
18