tchlp83.pp 337 B

1234567891011121314151617181920212223242526
  1. { %FAIL }
  2. { test visibility of symbols in the extended type - private }
  3. program tchlp83;
  4. {$ifdef fpc}
  5. {$mode delphi}
  6. {$endif}
  7. {$apptype console}
  8. uses
  9. uchlp82;
  10. type
  11. TFooHelper = class helper for TFoo
  12. function AccessField: Integer;
  13. end;
  14. function TFooHelper.AccessField: Integer;
  15. begin
  16. Result := Test2;
  17. end;
  18. begin
  19. end.