Files
Odin/src
Karl ZylinskiandClaude Opus 5 a1fb44f4d1 Remove the os.Error == 0 compatibility hack
The hack made `0` legal against `os.Error` by blanking the constant's
`ExactValue` via `update_untyped_expr_value`, which is a silent no-op when
the expression has not been registered as an untyped expression yet. Since
#7087, `check_expr_base` calls `convert_to_typed` before `add_untyped` runs,
so the blanking is lost and the backend receives a constant typed `os.Error`
still holding integer `0` with no variant type, tripping
`GB_ASSERT_MSG(value_type != nullptr)` in `lb_const_value`.

Also drop the redundant `operand->mode = Addressing_Invalid;` before the
union `convert_untyped_error` call, which revives the `Did you want 'nil'?`
hint, and guard that hint on `type_has_nil` and an Integer/Float zero.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 11:45:50 +02:00
..
2026-08-19 11:58:48 +02:00
2025-03-18 15:39:18 +00:00
&&
2024-11-07 15:02:19 +01:00
2026-08-13 20:47:16 -07:00
2026-03-19 08:27:09 +09:00
2026-08-09 12:04:08 -07:00
2026-08-18 14:57:34 +01:00
2021-08-29 15:54:56 +02:00
2026-08-19 20:13:00 -05:00
2026-06-30 22:44:28 +02:00
2026-04-11 12:51:22 +02:00
2026-06-29 17:01:44 +01:00
2026-08-17 19:54:21 +01:00
2026-08-18 14:57:34 +01:00
2022-12-18 21:17:07 +00:00
2026-03-17 12:55:25 +00:00
2025-08-02 12:33:33 +01:00
2026-05-12 18:24:08 -04:00
2024-04-26 13:25:08 +01:00
2026-08-12 16:08:58 +01:00
2026-08-19 20:12:56 -05:00
2026-07-01 22:54:48 -04:00