type-checking for use of empty table constructors in expressions

This commit is contained in:
Vern Paxson 2022-03-31 19:30:58 -07:00
parent 4d2115ffd3
commit e786ba2fa9
2 changed files with 35 additions and 16 deletions

View file

@ -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: