浏览代码

+ local symbols can hide class members in delphi mode

git-svn-id: trunk@7675 -
florian 18 年之前
父节点
当前提交
01a4737b10
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/symtable.pas

+ 2 - 1
compiler/symtable.pas

@@ -1168,7 +1168,8 @@ implementation
         if not is_funcret_sym(sym) and
            (defowner.typ=procdef) and
            assigned(tprocdef(defowner)._class) and
-           (tprocdef(defowner).owner.defowner=tprocdef(defowner)._class) then
+           (tprocdef(defowner).owner.defowner=tprocdef(defowner)._class) and
+           not(m_duplicate_names in current_settings.modeswitches) then
           result:=tprocdef(defowner)._class.symtable.checkduplicate(hashedid,sym);
       end;