mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
BIT-466: add redef += support to vectors
This commit is contained in:
parent
95c72f3717
commit
bd24421734
8 changed files with 59 additions and 3 deletions
|
@ -140,10 +140,11 @@ void ID::SetVal(Val* v, init_class c)
|
|||
}
|
||||
|
||||
if ( type->Tag() != TYPE_TABLE &&
|
||||
(type->Tag() != TYPE_PATTERN || c == INIT_REMOVE) )
|
||||
(type->Tag() != TYPE_PATTERN || c == INIT_REMOVE) &&
|
||||
(type->Tag() != TYPE_VECTOR || c == INIT_REMOVE) )
|
||||
{
|
||||
if ( c == INIT_EXTRA )
|
||||
Error("+= initializer only applies to tables, sets and patterns", v);
|
||||
Error("+= initializer only applies to tables, sets, vectors and patterns", v);
|
||||
else
|
||||
Error("-= initializer only applies to tables and sets", v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue