mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 01:48:00 +02:00

ngenutil.pas, AddToStructsInit: * don't add class constructors/destructors to the init table if they belong to a generic type + test git-svn-id: trunk@25234 -
18 lines
229 B
ObjectPascal
18 lines
229 B
ObjectPascal
{ %NORUN }
|
|
|
|
program project18;
|
|
|
|
{$mode delphi}
|
|
|
|
type
|
|
TFoo<T> = class
|
|
class constructor Create;
|
|
end;
|
|
|
|
class constructor TFoo<T>.Create;
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end. // Error: Undefined symbol: P$PROJECT18$_$TFOO$1_$__$$_create
|