diff options
Diffstat (limited to 'tests/bugs188/defaultMethods/Code.java')
-rw-r--r-- | tests/bugs188/defaultMethods/Code.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs188/defaultMethods/Code.java b/tests/bugs188/defaultMethods/Code.java new file mode 100644 index 000000000..a162fe75e --- /dev/null +++ b/tests/bugs188/defaultMethods/Code.java @@ -0,0 +1,18 @@ +public class Code implements I { + public static void main(String[] argv) { + new Code().m(); + } +} +aspect X { + void around(): execution(* I.*()) { + System.out.println("a"); + proceed(); + } +} + +interface I { + default void m(){ + System.out.println("b"); + } +} + |