summaryrefslogtreecommitdiffstats
path: root/tests/new/IllegalForwardReference.java
blob: 0a578bc773110e0f2034a1386ac81da4fae6c1d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import org.aspectj.testing.Tester;

public class IllegalForwardReference {
    public static void main(String[] args) {
        System.out.println(new Aspect.InnerClass().j + ", " + new Aspect.InnerClass().i);
        Tester.check(true, "compiled!");
    }
}

aspect Aspect {
    //int InnerClass.i = 13;

    static class InnerClass {
        int j = i;
        int i = 13;
    }
}