Include named events in checks for name collisions.
This commit is contained in:
parent
a17557575d
commit
cefcffecda
|
|
@ -822,6 +822,8 @@ bool NetScope::symbol_exists(perm_string sym)
|
||||||
return true;
|
return true;
|
||||||
if (typedefs_.find(sym) != typedefs_.end())
|
if (typedefs_.find(sym) != typedefs_.end())
|
||||||
return true;
|
return true;
|
||||||
|
if (find_event(sym))
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue