mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 14:07:57 +02:00
25 lines
272 B
ObjectPascal
25 lines
272 B
ObjectPascal
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.
|