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.2.0 / tests / webtbs / tw32179.pp
Size: Mime:
{$mode delphi}

type
  TGuidHelper = record helper for TGUID
    Class Function Create(const Data): TGUID; overload; static; inline;
    Class Function Create(const S: string): TGUID; overload; static;
  end;

class function TGuidHelper.Create(const Data): TGUID;
begin
  halt(1);
end;

class function TGuidHelper.Create(const S: string): TGUID;
begin
  writeln('B');
end;

var
  c: PChar;
  g: TGUID;
begin
  g.Create(utf8string(c)); // will print 'A'
  g.Create(unicodestring(c)); // will print 'A'
  g.Create(shortstring(c)); // will print 'A'
end.