diff options
| author | gingerBill <bill@gingerbill.org> | 2023-04-27 11:26:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-04-27 11:26:15 +0100 |
| commit | b0f0a02d3c897c91350501fcf3d8c2f03886a82f (patch) | |
| tree | c302c0d9526826317fd1457394940bfdb3ca2c26 /src/check_expr.cpp | |
| parent | 7cda64e52db8a5596063ec7050a630f87e925067 (diff) | |
Make `!x` be an untyped boolean
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 42306489b..6eb517251 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1688,6 +1688,8 @@ gb_internal bool check_unary_op(CheckerContext *c, Operand *o, Token op) { if (is_type_integer(type)) { error_line("\tSuggestion: Did you mean to use the bitwise not operator '~'?\n"); } + } else { + o->type = t_untyped_bool; } break; |