tchlp22.pp 409 B

1234567891011121314151617181920212223242526272829303132333435
  1. { %FAIL }
  2. { overloading needs to be enabled explicitly }
  3. program tchlp22;
  4. {$ifdef fpc}
  5. {$mode objfpc}
  6. {$endif}
  7. type
  8. TFoo = class
  9. procedure Test(const aTest: String);
  10. end;
  11. TFooHelper = class helper for TFoo
  12. procedure Test;
  13. end;
  14. procedure TFoo.Test(const aTest: String);
  15. begin
  16. end;
  17. procedure TFooHelper.Test;
  18. begin
  19. end;
  20. var
  21. f: TFoo;
  22. begin
  23. f := TFoo.Create;
  24. f.Test('Foo');
  25. end.