fpc/tests/webtbs/tw20629.pp
svenbarth 5ffba57b51 Add tests for resolved generic bug reports.
Also adjusted test for report 20836 (removed unneeded units and the {$R ...} directive completely and added a "%NORUN" modifier).

git-svn-id: trunk@19817 -
2011-12-11 15:49:22 +00:00

13 lines
216 B
ObjectPascal

{ %NORUN }
{$MODE delphi}
type
TWrapper<TValue> = class end;
TObjectWrapper = TWrapper<TObject>;
begin
with TObjectWrapper.Create do Free; { OK }
with TWrapper<TObject>.Create do Free; { Error }
end.