fpc/tests/test/tmoperator1.pp
2017-02-19 14:34:09 +00:00

29 lines
363 B
ObjectPascal

{ %NORUN }
program tmoperator1;
{$MODE OBJFPC}
{$modeswitch advancedrecords}
type
{ TFoo }
TFoo = record
private
class operator Initialize(var aFoo: TFoo);
class operator Finalize(var aFoo: TFoo);
end;
{ TFoo }
class operator TFoo.Initialize(var aFoo: TFoo);
begin
end;
class operator TFoo.Finalize(var aFoo: TFoo);
begin
end;
begin
end.