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