mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
change vector constructors to require direct type equivalence for non-arithmetics
This commit is contained in:
parent
c1e5389929
commit
47152e38c4
5 changed files with 63 additions and 12 deletions
|
@ -3977,7 +3977,7 @@ VectorConstructorExpr::VectorConstructorExpr(ListExprPtr constructor_list, TypeP
|
|||
return;
|
||||
}
|
||||
|
||||
if ( auto t = merge_type_list(op->AsListExpr()) )
|
||||
if ( auto t = maximal_type(op->AsListExpr()) )
|
||||
SetType(make_intrusive<VectorType>(std::move(t)));
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue