Explorar el Código

* fixed tobjectdef.find_destructor(), it did not search the parent classes

git-svn-id: trunk@15581 -
Jonas Maebe hace 15 años
padre
commit
572f51867c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -4434,7 +4434,7 @@ implementation
         objdef:=self;
         while assigned(objdef) do
           begin
-            result:=find_procdef_bytype(potype_destructor);
+            result:=objdef.find_procdef_bytype(potype_destructor);
             if assigned(result) then
               exit;
             objdef:=objdef.childof;