tb0083.pp 371 B

123456789101112131415161718192021222324252627
  1. { Old file: tbs0096.pp }
  2. { problem with objects as parameters OK 0.99.6 (PM) }
  3. type
  4. TParent = object
  5. end;
  6. PParent = ^TParent;
  7. TChild = object(TParent)
  8. end;
  9. procedure aProc(const x : TParent );
  10. begin
  11. end;
  12. procedure anotherProc(var x : TParent );
  13. begin
  14. end;
  15. var
  16. y : TChild;
  17. begin
  18. aProc(y);
  19. anotherProc(y);
  20. end.