zeek/testing/btest/Baseline/language.table-init-record-idx-3/output
Jon Siwek f6d5da423c Fix record constructors in table initializer indices. Addresses #660.
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.
2012-12-12 14:52:08 -06:00

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
}