mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 21:22:38 +02:00
27 lines
327 B
ObjectPascal
27 lines
327 B
ObjectPascal
{ %norun}
|
|
program tw18768;
|
|
|
|
{$mode delphi}{$H+}
|
|
|
|
type
|
|
TFoo1 = record
|
|
private
|
|
type
|
|
TFoo3 = record
|
|
private
|
|
b, c: integer;
|
|
protected
|
|
a: integer;
|
|
public
|
|
function GetFoo2: integer;
|
|
end;
|
|
end;
|
|
|
|
function TFoo1.TFoo3.GetFoo2: integer;
|
|
begin
|
|
c := a * b;
|
|
end;
|
|
|
|
begin
|
|
end.
|