Explorar el Código

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

Sven/Sarah Barth hace 3 años
padre
commit
ec96d4242a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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