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 / tw30706.pp
Size: Mime:
{$mode objfpc}{$H+}

uses SysUtils;

type
  TMyMethod = procedure (A: Integer) of object;

  TMyClass = class
    class procedure Foo(A: Integer);
  end;

class procedure TMyClass.Foo(A: Integer);
begin
  Writeln('Got int ', A);
end;

procedure CallMethod(M: TMyMethod);
begin
  M(123);
end;

begin
  CallMethod({$ifdef FPC_OBJFPC} @ {$endif} TMyClass(nil).Foo);
end.