mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 08:07:56 +02:00
23 lines
289 B
ObjectPascal
23 lines
289 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tw37650;
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
generic TMyClass<const U: Integer> = class
|
|
type TKey = String[U];
|
|
end;
|
|
|
|
generic procedure Test<const U: Integer>;
|
|
type
|
|
TKey = String[U];
|
|
begin
|
|
end;
|
|
|
|
type
|
|
TMyClass12 = specialize TMyClass<12>;
|
|
begin
|
|
specialize Test<12>;
|
|
end.
|