| ... | @@ -6480,11 +6480,11 @@ fn forExpr( | ... | @@ -6480,11 +6480,11 @@ fn forExpr( |
| 6480 | return astgen.failTok(ident_tok, "cannot capture reference to range", .{}); | 6480 | return astgen.failTok(ident_tok, "cannot capture reference to range", .{}); |
| 6481 | } | 6481 | } |
| 6482 | const start_node = node_data[input].lhs; | 6482 | const start_node = node_data[input].lhs; |
| 6483 | const start_val = try expr(parent_gz, scope, .{ .rl = .none }, start_node); | 6483 | const start_val = try expr(parent_gz, scope, .{ .rl = .{ .coerced_ty = .usize_type } }, start_node); |
| 6484 | | 6484 | |
| 6485 | const end_node = node_data[input].rhs; | 6485 | const end_node = node_data[input].rhs; |
| 6486 | const end_val = if (end_node != 0) | 6486 | const end_val = if (end_node != 0) |
| 6487 | try expr(parent_gz, scope, .{ .rl = .none }, node_data[input].rhs) | 6487 | try expr(parent_gz, scope, .{ .rl = .{ .coerced_ty = .usize_type } }, node_data[input].rhs) |
| 6488 | else | 6488 | else |
| 6489 | .none; | 6489 | .none; |
| 6490 | | 6490 | |