aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features164/declareMixin/CaseM.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features164/declareMixin/CaseM.java')
-rw-r--r--tests/features164/declareMixin/CaseM.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/features164/declareMixin/CaseM.java b/tests/features164/declareMixin/CaseM.java
new file mode 100644
index 000000000..31278979d
--- /dev/null
+++ b/tests/features164/declareMixin/CaseM.java
@@ -0,0 +1,19 @@
+// TESTING: mixin of a class - should be an error
+import org.aspectj.lang.annotation.*;
+
+public class CaseM {
+ public static void main(String[]argv) {
+ }
+}
+
+aspect X {
+ @DeclareMixin("CaseM")
+ public static C createImplementation1() {return new C();}
+
+}
+
+class C {
+ void foo() {
+ System.out.println("foo() running");
+ }
+}