Include named events in checks for name collisions.

This commit is contained in:
Martin Whitaker 2021-08-04 14:14:09 +01:00
parent a17557575d
commit cefcffecda
1 changed files with 2 additions and 0 deletions

View File

@ -822,6 +822,8 @@ bool NetScope::symbol_exists(perm_string sym)
return true;
if (typedefs_.find(sym) != typedefs_.end())
return true;
if (find_event(sym))
return true;
return false;
}