瀏覽代碼

* fixed (harmless) class cast error

git-svn-id: trunk@21260 -
Jonas Maebe 13 年之前
父節點
當前提交
95b8b95c9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/htypechk.pas

+ 1 - 1
compiler/htypechk.pas

@@ -1997,7 +1997,7 @@ implementation
                  end;
                  end;
              end;
              end;
            { now search in the type itself }
            { now search in the type itself }
-           srsym:=tprocsym(structdef.symtable.FindWithHash(hashedid));
+           srsym:=tsym(structdef.symtable.FindWithHash(hashedid));
            if assigned(srsym) and
            if assigned(srsym) and
               { Delphi allows hiding a property by a procedure with the same name }
               { Delphi allows hiding a property by a procedure with the same name }
               (srsym.typ=procsym) then
               (srsym.typ=procsym) then