Browse Source

* fixed wrong class cast in r18226

git-svn-id: trunk@18261 -
Jonas Maebe 14 years ago
parent
commit
3b9e1a4398
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/symtable.pas

+ 1 - 0
compiler/symtable.pas

@@ -648,6 +648,7 @@ implementation
                ([vo_is_hidden_para,vo_is_funcret] * tabstractvarsym(sym).varoptions = [vo_is_hidden_para]) or
                ([vo_is_hidden_para,vo_is_funcret] * tabstractvarsym(sym).varoptions = [vo_is_hidden_para]) or
                (sp_internal in tsym(sym).symoptions) or
                (sp_internal in tsym(sym).symoptions) or
                ((assigned(tsym(sym).owner.defowner) and
                ((assigned(tsym(sym).owner.defowner) and
+                (tsym(sym).owner.defowner.typ=procdef) and
                 (df_generic in tprocdef(tsym(sym).owner.defowner).defoptions))) then
                 (df_generic in tprocdef(tsym(sym).owner.defowner).defoptions))) then
               exit;
               exit;
             if (tstoredsym(sym).refs=0) then
             if (tstoredsym(sym).refs=0) then