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 / tw2481.pp
Size: Mime:
{ Source provided for Free Pascal Bug Report 2481 }
{ Submitted by "Eero Tanskanen" on  2003-05-04 }
{ e-mail: yendor@nic.fi }

{$mode objfpc}

Type
  TMoo = Class

    A : Real;
    Constructor Init;

  End;

Var
  Moo : TMoo;

  Operator := (V : Real) B : TMoo;
  Begin
    B:=TMoo.Create;
    B.A := V;
  End;

{$ifdef FPC_HAS_TYPE_EXTENDED}
{ otherwise extended = real = double }
  Operator := (V : Extended) B : TMoo;
  Begin
    B:=TMoo.Create;
    B.A := V;
  End;
{$endif FPC_HAS_TYPE_EXTENDED}

Constructor TMoo.Init;
Begin

  A := 0;

End;

Begin

  Moo := TMoo.Init;
  Moo := 0.2;

End.