slicc: fix error in conflicing symbol declaration
This commit is contained in:
parent
8a54adc2a5
commit
848861a17d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class SymbolTable(object):
|
|||
|
||||
for sym_map in self.sym_map_vec:
|
||||
if id in sym_map:
|
||||
if type(self.sym_map_vec[0][id]) != type(sym):
|
||||
if type(sym_map[id]) != type(sym):
|
||||
sym.error("Conflicting declaration of Symbol '%s'", id)
|
||||
|
||||
# FIXME - warn on masking of a declaration in a previous frame
|
||||
|
|
Loading…
Reference in a new issue