mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Add is_assignable() overload taking TypeTag
This commit is contained in:
parent
457c08f531
commit
863f02744e
3 changed files with 6 additions and 4 deletions
|
@ -1984,7 +1984,7 @@ RefExpr::RefExpr(IntrusivePtr<Expr> arg_op)
|
|||
if ( IsError() )
|
||||
return;
|
||||
|
||||
if ( ! ::is_assignable(op->GetType().get()) )
|
||||
if ( ! ::is_assignable(op->GetType()->Tag()) )
|
||||
ExprError("illegal assignment target");
|
||||
else
|
||||
SetType(op->GetType());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue