mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

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.
14 lines
224 B
Text
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;
|