Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw20796c.pp
Size: Mime:
unit tw20796c;

{$MODE OBJFPC}
{$DEFINE CRASHCOMPILER}

interface

type
  generic 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.SomeMethod;
begin
end;
{$ENDIF}

procedure TTestClass.DoTest;
type
  TByteWrapper = specialize TWrapper<Byte>;
var
  w: TByteWrapper;
begin
end;

end.