diff options
Diffstat (limited to 'tests/errors/CircularExtends.java')
-rw-r--r-- | tests/errors/CircularExtends.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/errors/CircularExtends.java b/tests/errors/CircularExtends.java new file mode 100644 index 000000000..9bd09bf6c --- /dev/null +++ b/tests/errors/CircularExtends.java @@ -0,0 +1,15 @@ +import org.aspectj.testing.Tester; + +/** + * @errors 7 + * @warnings + */ +public class CircularExtends extends CircularExtends { + public static void main(String[] args) { + new CircularExtends().realMain(args); + } + + public void realMain(String[] args) { + Tester.check(false, "shouldn't have compiled"); + } +} |