* check hierarchy of the current generic or specialization def independant of whether it's a record- or objectdef

This commit is contained in:
Sven/Sarah Barth 2022-02-05 18:57:12 +01:00
parent f02fc4fe0f
commit ec96d4242a

View File

@ -1588,7 +1588,7 @@ uses
i : longint;
begin
result:=nil;
while assigned(def) and (def.typ in [recorddef,objectdef]) do
while assigned(def) do
begin
if (df_generic in def.defoptions) and (def=genericdef) then
begin