mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix #3301
This commit is contained in:
@@ -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