diff options
Diffstat (limited to 'tests/bugs150/pr72834/Trouble.java')
-rw-r--r-- | tests/bugs150/pr72834/Trouble.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs150/pr72834/Trouble.java b/tests/bugs150/pr72834/Trouble.java new file mode 100644 index 000000000..dbee026f5 --- /dev/null +++ b/tests/bugs150/pr72834/Trouble.java @@ -0,0 +1,16 @@ + +abstract class A {} + +class B extends A {} + +aspect X { + abstract String A.getName(); + public String B.getName() { return "B"; } + public String A.toString() { return getName(); } +} + +public class Trouble { + public static void main(String[] args) { + System.out.println(new B()); + } +}
\ No newline at end of file |