diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-07 23:07:41 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-07 23:07:41 +0100 |
| commit | ea20b644cc82401c3e6e76c55cb8aac7ed655e56 (patch) | |
| tree | 387f3bef8b41b0f104a77b812288026f08cba7b7 | |
| parent | bf848637aa73ed1fd31484cca3802e1cd0c14f93 (diff) | |
Fix #2624
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 77c351cce..4e39b83bd 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1719,7 +1719,7 @@ gb_internal bool check_unary_op(CheckerContext *c, Operand *o, Token op) { break; case Token_Not: - if (!is_type_boolean(type)) { + if (!is_type_boolean(type) || is_type_array_like(o->type)) { ERROR_BLOCK(); str = expr_to_string(o->expr); error(op, "Operator '%.*s' is only allowed on boolean expressions", LIT(op.string)); |