diff options
Diffstat (limited to 'tests/errors/FinalStatic.java')
-rw-r--r-- | tests/errors/FinalStatic.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/errors/FinalStatic.java b/tests/errors/FinalStatic.java new file mode 100644 index 000000000..055e3ecd4 --- /dev/null +++ b/tests/errors/FinalStatic.java @@ -0,0 +1,14 @@ +import org.aspectj.testing.*; + +public class FinalStatic { + public static void main(String[] args) { + new FinalStatic().realMain(args); + } + + public void realMain(String[] args) { + Tester.check(false, "Shouldn't have compiled"); + } + + final static int i = -1; + { i = 13; } +} |