Include named events in checks for name collisions.

(cherry picked from commit cefcffecda)
This commit is contained in:
Martin Whitaker 2021-08-04 14:14:09 +01:00
parent 1ff4bfa63d
commit 4c428a536e
1 changed files with 2 additions and 0 deletions

View File

@ -814,6 +814,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;
}