WPO: handle classes defined in localsymtables

Can happen since the support for anonymous methods
This commit is contained in:
Jonas Maebe 2024-02-19 21:25:46 +01:00
parent 906571fa25
commit a512273976

View File

@ -590,7 +590,7 @@ unit optvirt;
objparentsymtab:=objdef.symtable;
mainsymtab:=objparentsymtab.defowner.owner;
classprefix:='';
while mainsymtab.symtabletype in [recordsymtable,objectsymtable] do
while mainsymtab.symtabletype in [recordsymtable,objectsymtable,localsymtable] do
begin
classprefix:=mainsymtab.name^+'.'+classprefix;
mainsymtab:=mainsymtab.defowner.owner;