mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
deprecate && / || operators for patterns
This commit is contained in:
parent
b864772e8a
commit
6c8562bbdd
1 changed files with 3 additions and 0 deletions
|
@ -1695,7 +1695,10 @@ BoolExpr::BoolExpr(BroExprTag arg_tag, Expr* arg_op1, Expr* arg_op2)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ( bt1 == TYPE_PATTERN && bt2 == bt1 )
|
else if ( bt1 == TYPE_PATTERN && bt2 == bt1 )
|
||||||
|
{
|
||||||
|
reporter->Warning("&& and || operators deprecated for pattern operands");
|
||||||
SetType(base_type(TYPE_PATTERN));
|
SetType(base_type(TYPE_PATTERN));
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
ExprError("requires boolean operands");
|
ExprError("requires boolean operands");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue