소스 검색

* 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