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 / tw7975.pp
Size: Mime:
{$mode objfpc}
{$inline on}

unit tw7975;

interface

type
  tc = class
    pref: string;
    parent: tc;
    function t(const s: string): string; virtual;
  end;

function test(c: tc): string; inline;

implementation

function tc.t(const s: string): string;
begin
  result := s + ' -- passed t';
end;

function test(c: tc): string; inline;
begin
  c.pref := 'bla';
  c.parent := c;
  result := c.parent.t('a'+c.pref);
end;

end.