mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
9 lines
386 B
Text
9 lines
386 B
Text
# @TEST-EXEC-FAIL: zeek -b %INPUT >out 2>&1
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
|
|
|
# Type inference for vector constructor comprised of disparate enum types
|
|
# should raise an error message about the types being incompatible.
|
|
|
|
type color: enum { Red, Green, Blue };
|
|
type number: enum { One, Two, Three, Four};
|
|
global v = vector(Red, Four, Blue);
|