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

{$MODE OBJFPC}

type
  TTest = class
  public type
    TProcedure = procedure;
  private
    class procedure MyProc; static;
  public
    constructor Create;
  end;

{ TTest }

constructor TTest.Create;
var
  aProc: TProcedure;
begin
  aProc := @MyProc;
  aProc;
end;

class procedure TTest.MyProc;
begin
  Writeln('OK');
end;

begin
  TTest.Create;
end.