summaryrefslogtreecommitdiffstats
path: root/tests/new/ArrayFieldDeclarationCE.java
blob: e49ba740fa5e3d857a08e4a83cc4e5adeacbf51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** @testcase PR#829 CE expected when declaring fields on arrays */
public class ArrayFieldDeclarationCE {

    public static void main(String[] args) {
        throw new Error("should not run");
    }
}

class C { }

aspect A {
    public int C[].foo; // CE 14 cannot declare fields on arrays
}