summaryrefslogtreecommitdiffstats
path: root/tests/new/BindingInNotCf.java
blob: 5c414fef906932590316686db77a25ae52763f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * AspectJ should have a rule that binding parameters lexically
 * within a ! is always an error.  These test some of the most
 * obvious forms of that.
 */
public aspect BindingInNotCf {
    pointcut pc1(Object o): this(o);

    pointcut pc2(Object o): !this(o); //CE

    pointcut pc3(Object o): !pc2(o); //CE

    pointcut pc4(Object o): !!pc1(o); //CE
}