mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 08:10:31 +02:00
20 lines
204 B
ObjectPascal
20 lines
204 B
ObjectPascal
{$mode objfpc}
|
|
type
|
|
tc1 = class
|
|
end;
|
|
|
|
tc2 = class(tc1)
|
|
end;
|
|
|
|
tcoc1 = class of tc1;
|
|
tcoc2 = class of tc2;
|
|
|
|
procedure p(const a : array of tcoc1);
|
|
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
p([tc2]);
|
|
end.
|