aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/WildcardForReturns.java
blob: 2235c3cbcfa2c549295f103d0002ea9318bedc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import org.aspectj.testing.Tester;





/** @testcase PR#280 wildcard used for returns clause */
public class WildcardForReturns {
    public static void main(String[] args) { 
        new WildcardForReturns().m(); 
    }
    
    public void m() { }
}
aspect A {
   * around (WildcardForReturns t): this(t) && call(* m()) {  // CE 17
    	// bad test - return null; //return proceed(t);
   }
}