mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
21 lines
291 B
ObjectPascal
21 lines
291 B
ObjectPascal
program tgeneric32;
|
|
{$MODE DELPHI}
|
|
{$APPTYPE CONSOLE}
|
|
type
|
|
TFoo<T> = class
|
|
constructor Create;
|
|
end;
|
|
|
|
constructor TFoo<T>.Create;
|
|
begin
|
|
inherited Create;
|
|
end;
|
|
|
|
var
|
|
FooInt: TFoo<Integer>;
|
|
begin
|
|
// check inline specialization
|
|
FooInt := TFoo<Integer>.Create;
|
|
FooInt.Free;
|
|
end.
|