mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 11:09:39 +02:00
20 lines
166 B
ObjectPascal
20 lines
166 B
ObjectPascal
{ %opt=-CR -S2 }
|
|
|
|
type
|
|
tc1 = class
|
|
end;
|
|
|
|
tc2 = class(tc1)
|
|
end;
|
|
|
|
procedure t(var c: tc2);
|
|
begin
|
|
end;
|
|
|
|
var
|
|
c: tc1;
|
|
begin
|
|
c := tc2.create;
|
|
t(tc2(c));
|
|
end.
|