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 / tbf / tb0247.pp
Size: Mime:
{ %FAIL }

program tb0247;

{$WARN 4122 ERROR}

{$mode objfpc}

type
  TTest = class abstract

  end;

  TTestClass = class of TTest;

  TTestSub = class

  end;

var
  o: TObject;
  c: TTestClass;
begin
  { this should not create an error }
  o := c.Create;
  { this neither }
  o := TTestSub.Create;
  { but this should create an error }
  o := TTest.Create;
end.