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