tchlp36.pp 363 B

12345678910111213141516171819202122232425262728293031
  1. { %FAIL }
  2. { a class helper must extend a subclass of the parent class helper }
  3. program tchlp36;
  4. {$ifdef fpc}
  5. {$mode delphi}
  6. {$endif}
  7. type
  8. TBar = class
  9. end;
  10. TBarHelper = class helper for TBar
  11. procedure Test;
  12. end;
  13. TFoo = class
  14. end;
  15. TFooHelper = class helper(TBarHelper) for TFoo
  16. end;
  17. procedure TBarHelper.Test;
  18. begin
  19. end;
  20. begin
  21. end.