aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/ArrayFieldDeclaration.java
blob: fec447fb11eca143cd2a8d7529cc655fa5f0b95a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import org.aspectj.testing.Tester;
import java.util.*;

/** @testcase PR#829 declare array field using postfix */
public class ArrayFieldDeclaration {

    public static void main(String[] args) {
        Tester.check(null != new C().f[0], "null != new C().f[0]");
    }
}

class C { 
}

aspect A {
    Object C.f[] = new Object[] { "hello" };
}