From 6a8fa08bcb628ad06c1acdb7f6d8a4e7ea73bc79 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 6 Mar 2003 07:51:54 +0000 Subject: @testcase PR#33948 default constructor inter-type declaration conflicts with compiler-generated constructor --- tests/bugs/ConstructorDeclaration.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/bugs/ConstructorDeclaration.java (limited to 'tests/bugs') diff --git a/tests/bugs/ConstructorDeclaration.java b/tests/bugs/ConstructorDeclaration.java new file mode 100644 index 000000000..df45cb13d --- /dev/null +++ b/tests/bugs/ConstructorDeclaration.java @@ -0,0 +1,17 @@ + +import org.aspectj.testing.Tester; + +/** @testcase PR#33948 default constructor inter-type declaration */ +public class ConstructorDeclaration { + public static void main(String[] args) { + Tester.expectEvent("create"); + new ConstructorDeclaration(); + Tester.checkAllEvents(); + } +} + +aspect A { + ConstructorDeclaration.new() { + Tester.event("create"); + } +} \ No newline at end of file -- cgit v1.2.3