tchlp51.pp 426 B

1234567891011121314151617181920212223
  1. { this tests whether a class helper introduced in the uses clause of an
  2. implementation section overrides the one introduced in the interface section }
  3. program tchlp51;
  4. {$ifdef fpc}
  5. {$mode objfpc}
  6. {$endif}
  7. {$apptype console}
  8. uses
  9. uchlp51a, uchlp51c;
  10. var
  11. f: TFoo;
  12. res: Integer;
  13. begin
  14. f := TFoo.Create;
  15. res := f.AccessTest;
  16. Writeln('f.AccessTest: ', res);
  17. if res <> 1 then
  18. Halt(1);
  19. Writeln('ok');
  20. end.