diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-02 21:10:26 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-02 21:10:26 -0500 |
commit | 38dd2a6e3389db247ce15faafb5ffc75a82ae50d (patch) | |
tree | f4c08cfb710336162b86f577e6c5215346ca6041 /types.c | |
parent | e252df25d86bb17d73bcbacbf1208a6223093ec1 (diff) |
cleanup
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1407,6 +1407,10 @@ static bool types_expr(Typer *tr, Expression *e) { case BINARY_EQ: case BINARY_NE: { bool valid = false; + assert(lhs_type->flags & TYPE_IS_RESOLVED); + assert(rhs_type->flags & TYPE_IS_RESOLVED); + + if (o == BINARY_SET) { valid = type_eq(lhs_type, rhs_type); if (lhs_type->kind == TYPE_TYPE) { |