mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Improve type checking of records, addresses BIT-1159.
This commit is contained in:
parent
0f3ed1a553
commit
b1fd161274
13 changed files with 118 additions and 58 deletions
|
@ -559,7 +559,8 @@ expr:
|
|||
{
|
||||
switch ( ctor_type->Tag() ) {
|
||||
case TYPE_RECORD:
|
||||
$$ = new RecordConstructorExpr($4, ctor_type);
|
||||
$$ = new RecordCoerceExpr(new RecordConstructorExpr($4),
|
||||
ctor_type->AsRecordType());
|
||||
break;
|
||||
|
||||
case TYPE_TABLE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue