浏览代码

* 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 年之前
父节点
当前提交
bab4aac42e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/symtable.pas

+ 1 - 1
compiler/symtable.pas

@@ -2085,7 +2085,7 @@ implementation
       begin
         result:=assigned(childsym) and (childsym.owner=symtable);
         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);
       end;