diff options
Diffstat (limited to 'tests/new/DeclareAspectConstructorCE.java')
-rw-r--r-- | tests/new/DeclareAspectConstructorCE.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/new/DeclareAspectConstructorCE.java b/tests/new/DeclareAspectConstructorCE.java new file mode 100644 index 000000000..864d5f097 --- /dev/null +++ b/tests/new/DeclareAspectConstructorCE.java @@ -0,0 +1,11 @@ + + +/** @testcase PR851 declaring an aspect constructor with argument should be prohibited */ + +aspect A { + A() {} +} + +aspect B { + A.new(int i) {} // CE 10 +} |