diff options
Diffstat (limited to 'tests/features164/declareMixin/CaseJ.java')
-rw-r--r-- | tests/features164/declareMixin/CaseJ.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/features164/declareMixin/CaseJ.java b/tests/features164/declareMixin/CaseJ.java new file mode 100644 index 000000000..8b33faf6c --- /dev/null +++ b/tests/features164/declareMixin/CaseJ.java @@ -0,0 +1,17 @@ +// TESTING: invalid return type for factory method +import org.aspectj.lang.annotation.*; + +public class CaseJ { + public static void main(String[]argv) { } +} + +aspect X { + @DeclareMixin("A") + public static void createImplementation1() {} + + @DeclareMixin("A") + public static int createImplementation2(Object o) {return 2;} +} + +interface I {} + |