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 / test / tclass12b.pp
Size: Mime:
{ %FAIL}
program tclass12b;
{$ifdef fpc}
  {$mode delphi}
{$endif}
{$apptype console}

type
  TSomeClass = class
  strict private
    const
      PrivateConst = 3.14;
  end;

  TAnotherClass = class(TSomeClass)
  public
    class procedure WritePrivateConst; static;
  end;

  class procedure TAnotherClass.WritePrivateConst;
  begin
    WriteLn(PrivateConst)
  end;

begin
  TAnotherClass.WritePrivateConst
end.