aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/AspectInterfaces.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/AspectInterfaces.java')
-rw-r--r--tests/errors/AspectInterfaces.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errors/AspectInterfaces.java b/tests/errors/AspectInterfaces.java
new file mode 100644
index 000000000..0bccb0593
--- /dev/null
+++ b/tests/errors/AspectInterfaces.java
@@ -0,0 +1,9 @@
+public class AspectInterfaces {
+}
+
+aspect SerAspect implements java.io.Serializable {} //ERR: can't implement Ser
+aspect CloneAspect implements Cloneable {} //ERR: can't implement Clone
+
+class C implements java.io.Serializable { }
+
+aspect Ser1Aspect extends C {} //ERR: can't extend a class that implements Ser