You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr92311.aj 235B

123456789101112131415
  1. class Base {
  2. public int x;
  3. }
  4. aspect ExtendBase {
  5. public ExtendBase() {}
  6. // private int ExtendBase.x;
  7. declare parents: Y extends ExtendBase;
  8. }
  9. class Y extends Base {
  10. public void foo() {
  11. System.out.println(x);
  12. }
  13. }