This commit is contained in:
gingerBill
2024-03-20 18:09:57 +00:00
parent c17adc98f5
commit 8e0806be2d

View File

@@ -1661,6 +1661,8 @@ gb_internal void check_range_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags)
defer (gb_string_free(s));
defer (gb_string_free(t));
ERROR_BLOCK();
error(operand.expr, "Cannot iterate over '%s' of type '%s'", s, t);
if (rs->vals.count == 1) {