Fix #3301
This commit is contained in:
1 parent
c17adc98f5
commit
8e0806be2d
1 file changed
+2
@@ -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(s));
|
||||||
defer (gb_string_free(t));
|
defer (gb_string_free(t));
|
||||||
|
|
||||||
|
ERROR_BLOCK();
|
||||||
|
|
||||||
error(operand.expr, "Cannot iterate over '%s' of type '%s'", s, t);
|
error(operand.expr, "Cannot iterate over '%s' of type '%s'", s, t);
|
||||||
|
|
||||||
if (rs->vals.count == 1) {
|
if (rs->vals.count == 1) {
|
||||||
|
|||||||
Reference in new issue
Block a user