mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
type-checking for use of empty table constructors in expressions
This commit is contained in:
parent
4d2115ffd3
commit
e786ba2fa9
2 changed files with 35 additions and 16 deletions
|
@ -1310,7 +1310,7 @@ extern RecordValPtr coerce_to_record(RecordTypePtr rt, Val* v, const std::vector
|
|||
class TableCoerceExpr final : public UnaryExpr
|
||||
{
|
||||
public:
|
||||
TableCoerceExpr(ExprPtr op, TableTypePtr r);
|
||||
TableCoerceExpr(ExprPtr op, TableTypePtr r, bool type_check = true);
|
||||
~TableCoerceExpr() override;
|
||||
|
||||
// Optimization-related:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue