mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:29:14 +02:00
* fixed tobjectdef.find_destructor(), it did not search the parent classes
git-svn-id: trunk@15581 -
This commit is contained in:
parent
517290d09d
commit
572f51867c
@ -4434,7 +4434,7 @@ implementation
|
|||||||
objdef:=self;
|
objdef:=self;
|
||||||
while assigned(objdef) do
|
while assigned(objdef) do
|
||||||
begin
|
begin
|
||||||
result:=find_procdef_bytype(potype_destructor);
|
result:=objdef.find_procdef_bytype(potype_destructor);
|
||||||
if assigned(result) then
|
if assigned(result) then
|
||||||
exit;
|
exit;
|
||||||
objdef:=objdef.childof;
|
objdef:=objdef.childof;
|
||||||
|
Loading…
Reference in New Issue
Block a user