* fixed class cast error

git-svn-id: branches/objc@13737 -
This commit is contained in:
Jonas Maebe 2009-09-18 10:42:09 +00:00
parent d942c99921
commit e41c06391b

View File

@ -633,7 +633,8 @@ implementation
) and
{ don't complain about alias for hidden _cmd parameter to
obj-c methods }
not (vo_is_msgsel in tabstractvarsym(sym).varoptions) then
not((tsym(sym).typ in [localvarsym,paravarsym]) and
(vo_is_msgsel in tabstractvarsym(sym).varoptions)) then
MessagePos2(tsym(sym).fileinfo,sym_h_local_symbol_not_used,SymTypeName[tsym(sym).typ],tsym(sym).prettyname);
end;
end;