fpc/tests/webtbs/tw39310.pp
Sven Barth 3ce6cae11d * fix for #39310 by fixing various small issues in tabstractrecordsymtable.has_single_field:
- initialize the returned def to a safe default
  - correctly reset the found symbol for each loop
  - reset the result when descending into a record
+ added test
2021-09-01 09:31:15 +02:00

22 lines
194 B
ObjectPascal

{ %NORUN }
{$MODESWITCH ADVANCEDRECORDS}
Program tw39310;
Type
Rec0 = record
end;
Rec1 = record
r:Rec0;
Procedure Proc;
end;
Procedure Rec1.Proc;
begin
end;
Begin
End.