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 / test / tforin22.pp
Size: Mime:
{ %FAIL}
{$mode objfpc}
{$apptype console}

type 
  T = class
    F: Integer;
    function MoveNext(a: Integer): Boolean;
    property Current: Integer read F;
  end;

function T.MoveNext(a: Integer): Boolean; 
begin 
  Result := true; 
end;

operator enumerator(a: Integer): T;
begin
  Result := T.Create;
  Result.F := a;
end;

var
  i: Integer;
begin
  for i in 1 do Writeln(i);
end.