zeek/testing/btest/language/enum-scope.zeek
Jon Siwek 26ad26c101 Fix incorrect conflict detection of namespaced-enum-names
E.g. defining a `Foo::RED` enum name when a `GLOBAL::RED` identifier
already exists would previously be treated as an error, even though the
names don't truly conflict.
2020-07-31 16:44:49 -07:00

14 lines
224 B
Text

# @TEST-EXEC: zeek -b %INPUT >output 2>&1
# @TEST-EXEC: btest-diff output
type foo: enum { a, b } &redef;
module test;
redef enum foo += { c };
export {
type foo: enum { a, b };
}
print GLOBAL::a, GLOBAL::b, a, b, c;