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 / tw26075b.pp
Size: Mime:
program fpc_advrec_bug;

{$mode delphi}
{$optimization off}

Uses TypInfo;

Type

 PTypeInfoRec = object
  FValue : PTypeInfo;
  Function QualifiedName : String;
 End;

Function PTypeInfoRec.QualifiedName : String;
Begin
 Result := '';
End;

function Test : Pointer;
Begin
 Result := nil;
End;

Var

 p : PTypeInfo;

begin

 PTypeInfoRec(p).QualifiedName; // OK
 PTypeInfoRec(Test).QualifiedName; // OK
 PTypeInfoRec(TypeInfo(String)).QualifiedName; // Internal error 200304235

end.