uchlp50.pp 396 B

12345678910111213141516171819202122232425262728293031323334
  1. unit uchlp50;
  2. {$ifdef fpc}
  3. {$mode objfpc}{$H+}
  4. {$endif}
  5. interface
  6. type
  7. TFoo = class
  8. end;
  9. TFooHelper1 = class helper for TFoo
  10. function Test: Integer;
  11. end;
  12. TFooHelper2 = class helper for TFoo
  13. function Test: Integer;
  14. end;
  15. implementation
  16. function TFooHelper1.Test: Integer;
  17. begin
  18. Result := 1;
  19. end;
  20. function TFooHelper2.Test: Integer;
  21. begin
  22. Result := 2;
  23. end;
  24. end.