fpc/tests/webtbs/tw24848.pp
svenbarth ff3bb9322a Fix for Mantis #24848.
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 -
2013-08-11 11:20:12 +00:00

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