aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/ConstructorDeclaration.java
blob: df45cb13d67ba08ce9b1d6ae6cb86890254d0279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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");
    }
}