From ae314a4c6bd24c450deece492de96d9cae6287f7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 15 Dec 2025 09:43:29 +0000 Subject: [PATCH] Propagate array arithmetic fix --- src/check_expr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 5fae9ffc2..83af90280 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -4455,7 +4455,10 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ break; } } - } else if (!is_type_array_like(x->type)) { + } else if (is_type_array_like(x->type)) { + x->mode = Addressing_Value; + return; + } else { x->value = exact_binary_operator_value(op.kind, a, b); }