aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options/injars/simple/DecParents.java
blob: ecbf5f1e3ed8b773accbf00000dd543824765220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import org.aspectj.testing.Tester;

public aspect DecParents {
	private interface I {
		public abstract String doit();
	}
	
	public String I.doit() {
		return "foo";
	}
	
	declare parents: Main implements I;
	
	before(): execution(void Main.main(..)) {
	}
	
    public static void main(String[] args) {
    	I i = new Main();
    	System.out.println("Main: " + i.doit());
    }
}