fpc/tests/webtbs/tw20796a.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

40 lines
499 B
ObjectPascal

unit tw20796a;
{$MODE DELPHI}
{$DEFINE CRASHCOMPILER}
interface
type
TWrapper<TValue> = class
strict private
FValue: TValue;
public
property Value: TValue read FValue write FValue;
{$IFDEF CRASHCOMPILER}
procedure SomeMethod;
{$ENDIF}
end;
TTestClass = class
public
procedure DoTest;
end;
implementation
{$IFDEF CRASHCOMPILER}
procedure TWrapper<TValue>.SomeMethod;
begin
end;
{$ENDIF}
procedure TTestClass.DoTest;
var
w: TWrapper<Byte>;
begin
end;
end.