Browse Source

* fixed class cast error

git-svn-id: branches/objc@13737 -
Jonas Maebe 16 years ago
parent
commit
e41c06391b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/symtable.pas

+ 2 - 1
compiler/symtable.pas

@@ -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;