diff options
Diffstat (limited to 'tests/bugs/abstractMethods/singlesource/C2.java')
-rw-r--r-- | tests/bugs/abstractMethods/singlesource/C2.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs/abstractMethods/singlesource/C2.java b/tests/bugs/abstractMethods/singlesource/C2.java new file mode 100644 index 000000000..545fc9daa --- /dev/null +++ b/tests/bugs/abstractMethods/singlesource/C2.java @@ -0,0 +1,16 @@ +abstract class B {} + +aspect A { + public abstract void B.m(); + + public static void doit(B b) { b.m(); } +} + +public class C2 extends B { + public static void main(String[] args) { + A.doit(new C2()); + } + + public void m() {} +} + |