Browse Source

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

Sven/Sarah Barth 3 years ago
parent
commit
ec96d4242a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/pgenutil.pas

+ 1 - 1
compiler/pgenutil.pas

@@ -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