mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 08:38:14 +02:00
28 lines
356 B
ObjectPascal
28 lines
356 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tmoperator6;
|
|
|
|
{$MODE DELPHI}
|
|
|
|
type
|
|
|
|
{ TFoo }
|
|
|
|
TFoo = record
|
|
private
|
|
class operator Initialize(var aFoo: TFoo): Boolean;
|
|
class operator Finalize(var aFoo: Pointer);
|
|
end;
|
|
|
|
{ TFoo }
|
|
|
|
class operator TFoo.Initialize(var aFoo: TFoo): Boolean;
|
|
begin
|
|
end;
|
|
|
|
class operator TFoo.Finalize(var aFoo: Pointer);
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end. |