diff options
Diffstat (limited to 'tests/new/IllegalForwardReference.java')
-rw-r--r-- | tests/new/IllegalForwardReference.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/new/IllegalForwardReference.java b/tests/new/IllegalForwardReference.java new file mode 100644 index 000000000..0a578bc77 --- /dev/null +++ b/tests/new/IllegalForwardReference.java @@ -0,0 +1,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; + } +} |