mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix table(), set(), vector() constructors in table initializer lists.
Also adds type checking of yield values to table() constructor and fixes the type checking of yield values in vector() constructor. Addresses #5.
This commit is contained in:
parent
e2fdf16e0c
commit
a0590b2140
4 changed files with 150 additions and 6 deletions
|
@ -0,0 +1,42 @@
|
|||
table of set
|
||||
{
|
||||
[13] = {
|
||||
[bar, 2] ,
|
||||
[foo, 1]
|
||||
},
|
||||
[5] = {
|
||||
[bah, 3] ,
|
||||
[baz, 4]
|
||||
}
|
||||
}
|
||||
|
||||
table of vector
|
||||
{
|
||||
[13] = [1, 2],
|
||||
[5] = [3, 4]
|
||||
}
|
||||
|
||||
table of table
|
||||
{
|
||||
[13] = {
|
||||
[bar, 2] = 2,
|
||||
[foo, 1] = 1
|
||||
},
|
||||
[5] = {
|
||||
[bah, 3] = 3,
|
||||
[baz, 4] = 4
|
||||
}
|
||||
}
|
||||
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
||||
T
|
Loading…
Add table
Add a link
Reference in a new issue