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 / webtbs / tw8150a.pp
Size: Mime:
{$ifdef fpc}
{$mode delphi}
{$endif}

type
  tc = class
    a : longint;
    class procedure classmethod;
    procedure method;
  end;

  ttc = class of tc;

var
  l : longint;

class procedure tc.classmethod;
begin
  if l <> 1 then
    halt(1);
  l := 2;
end;

procedure tc.method;
begin
end;

var
  c: ttc;
begin
  c := tc;
  l := 1;
  with c do
    classmethod;
  if l <> 2 then
    halt(2);
end.