aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hasmember/HasMethodViaITD.aj
blob: 5573675d5aa4f57d12c9dcdbceca476f1a24641b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public aspect HasMethodViaITD {
	
	declare parents : hasmethod(* foo()) implements I;
	
	// C gets foo via ITD
	public void C.foo() {}
	
	declare warning : execution(* I+.bar()) : "hasmethod matched on ITD ok";
}

interface I {}

class C {
	
	void bar() {}
	
}