Open vpax opened 1 year ago
Just at a quick glance, it looks like we only avoid creating duplicate IDs if we're not in the global scope. It'll happily do this otherwise.
It's the same for enums, actually, and we might be relying on this working due to enum's being repeated for .bif
files and in .zeek
files:
https://github.com/zeek/zeek/pull/4063#discussion_r1858864804
Surprisingly, this script compiles fine:
and when run prints: