Browse Source

* use same symtable check in sym_is_owned_by() as in is_owned_by() to
determine whether or not we should stop (local/parasymtable)

git-svn-id: trunk@23583 -

Jonas Maebe 12 years ago
parent
commit
bab4aac42e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/symtable.pas

+ 1 - 1
compiler/symtable.pas

@@ -2085,7 +2085,7 @@ implementation
       begin
       begin
         result:=assigned(childsym) and (childsym.owner=symtable);
         result:=assigned(childsym) and (childsym.owner=symtable);
         if not result and assigned(childsym) and
         if not result and assigned(childsym) and
-            (childsym.owner.symtabletype in [objectsymtable,recordsymtable]) then
+           not(childsym.owner.symtabletype in [localsymtable,parasymtable]) then
           result:=sym_is_owned_by(tabstractrecorddef(childsym.owner.defowner).typesym,symtable);
           result:=sym_is_owned_by(tabstractrecorddef(childsym.owner.defowner).typesym,symtable);
       end;
       end;