mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 01:08:07 +02:00
30 lines
310 B
ObjectPascal
30 lines
310 B
ObjectPascal
unit uw17950;
|
|
|
|
{$mode delphi}
|
|
|
|
interface
|
|
|
|
implementation
|
|
|
|
type
|
|
TFoo1 = class;
|
|
|
|
TFoo1 = class
|
|
public
|
|
type
|
|
TFoo2 = object
|
|
private
|
|
FField2: integer;
|
|
end;
|
|
public
|
|
function GetFoo2: TFoo2;
|
|
end;
|
|
|
|
function TFoo1.GetFoo2: TFoo2;
|
|
begin
|
|
result.FField2 := 5;
|
|
end;
|
|
|
|
end.
|
|
|