mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 10:28:50 +02:00
28 lines
371 B
ObjectPascal
28 lines
371 B
ObjectPascal
{ Old file: tbs0096.pp }
|
|
{ problem with objects as parameters OK 0.99.6 (PM) }
|
|
|
|
type
|
|
TParent = object
|
|
end;
|
|
|
|
PParent = ^TParent;
|
|
|
|
TChild = object(TParent)
|
|
end;
|
|
|
|
procedure aProc(const x : TParent );
|
|
begin
|
|
end;
|
|
|
|
procedure anotherProc(var x : TParent );
|
|
begin
|
|
end;
|
|
|
|
var
|
|
y : TChild;
|
|
|
|
begin
|
|
aProc(y);
|
|
anotherProc(y);
|
|
end.
|