tw3473.pp 334 B

1234567891011121314151617181920212223242526
  1. { %fail }
  2. {$mode delphi}
  3. type
  4. TA = class
  5. procedure douseful; virtual; abstract;
  6. end;
  7. TB = class(TA)
  8. public
  9. procedure callabs;
  10. procedure douseful; override;
  11. end;
  12. procedure TB.douseful;
  13. begin
  14. { This should give an error, comaptible with Kylix }
  15. inherited;
  16. end;
  17. procedure TB.Callabs;
  18. begin
  19. end;
  20. begin
  21. end.