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

For an index expression list, ListExpr::InitVal() passed the TypeList to Expr::InitVal() for each expression element in the list instead of the type for that element. This made RecordConstructorExpr::InitVal() complain since it expects a RecordType and not a TypeList with a RecordType element as an argument. In most other cases, Expr::InitVal() worked because check_and_promote() "flattens" the list to a single type.
25 lines
244 B
Text
25 lines
244 B
Text
following should all be true...
|
|
T
|
|
T
|
|
T
|
|
T
|
|
T
|
|
T
|
|
T
|
|
T
|
|
1
|
|
1
|
|
1
|
|
following should all be false...
|
|
F
|
|
F
|
|
F
|
|
now here's the foo table...
|
|
{
|
|
[[a=baz, b=5]] = 5,
|
|
[[a=foo, b=2]] = 2,
|
|
[[a=baz, b=6]] = 6,
|
|
[[a=foo, b=1]] = 1,
|
|
[[a=bar, b=4]] = 4,
|
|
[[a=bar, b=3]] = 3
|
|
}
|