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 / tbs / tb0611.pp
Size: Mime:
{$mode objfpc}
{$warn 6018 off}
type
  tmyclass = class
    procedure HelloMethod(i : longint);
  end;

procedure Hello(i : longint);
  begin
    writeln({$I %CURRENTROUTINE%});
    if {$I %CURRENTROUTINE%}<>'Hello' then
      halt(i);
  end;

procedure tmyclass.HelloMethod(i : longint);
  begin
    writeln({$I %CURRENTROUTINE%});
    if {$I %CURRENTROUTINE%}<>'HelloMethod' then
      halt(i);
  end;

var
  myclass : tmyclass;

begin
  Hello(1);
  myclass:=tmyclass.create;
  myclass.HelloMethod(1);
  myclass.Free;
  writeln('Ok');
end.