mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
9 lines
307 B
Text
9 lines
307 B
Text
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
# Type inference for vector constructor comprised of enums should work fine
|
|
# (previously the internal merge_types code did not handle enums).
|
|
|
|
type color: enum { Red, Green, Blue };
|
|
global v = vector(Red, Green, Blue);
|
|
print type_name(v), v;
|