diff options
Diffstat (limited to 'tests/options/injars/simple/DecParents.java')
-rw-r--r-- | tests/options/injars/simple/DecParents.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/options/injars/simple/DecParents.java b/tests/options/injars/simple/DecParents.java new file mode 100644 index 000000000..ecbf5f1e3 --- /dev/null +++ b/tests/options/injars/simple/DecParents.java @@ -0,0 +1,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()); + } +}
\ No newline at end of file |