Merge remote-tracking branch 'origin/topic/jsiwek/table-init-container-ctors'

* origin/topic/jsiwek/table-init-container-ctors:
  Add test of record() constructor to table initializer unit test.
  Fix table(), set(), vector() constructors in table initializer lists.

Closes #5.
This commit is contained in:
Robin Sommer 2012-12-03 14:08:56 -08:00
commit d4792dc7fe
6 changed files with 191 additions and 7 deletions

View file

@ -3117,6 +3117,9 @@ void VectorVal::ValDescribe(ODesc* d) const
Val* check_and_promote(Val* v, const BroType* t, int is_init)
{
if ( ! v )
return 0;
BroType* vt = v->Type();
vt = flatten_type(vt);