summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/genericaspects/DecPGenericTest.aj
blob: 0634679ab283baa08d3cec3deb286bcfa21c2690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
abstract aspect DecPGenericTest<X,Y> {
	
	declare parents : X implements Y;
	
}

aspect Sub extends DecPGenericTest<C,I> {
	
	declare warning : execution(* I+.foo()) : "success";
	
}

class C {
	
	void foo() {}
	
}

interface I {}