Add constant -> constant index

This commit is contained in:
Sylphrena committed 2026-09-09 20:34:41 +02:00
1 parent add1e6849a
commit 0d49f1fed3
1 file changed
+1 -1
+1 -1
View File
@@ -12211,7 +12211,7 @@ gb_internal ExprKind check_index_expr(CheckerContext *c, Operand *o, Ast *node,
gbString str = expr_to_string(o->expr);
error(o->expr, "Cannot index a constant '%s' with a variable index", str);
if (!build_context.terse_errors) {
error_line("\tSuggestion: store the constant into a variable or index it with a constant\n");
error_line("\tSuggestion: store the constant into a variable or index it with a constant index\n");
}
gb_string_free(str);
o->mode = Addressing_Invalid;