| ... | ... | @@ -158,8 +158,7 @@ fn doInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Val |
| 158 | 158 | 1 => { |
| 159 | 159 | for (x) |item| { |
| 160 | 160 | if (@hasField(@TypeOf(ctx), "this")) { |
| 161 | | // handle nested loops, should be temporary |
| 162 | | try do(alloc, writer, body, null, extras.join(.{ extras.omit(ctx, "this"), .{ .this = item } }), opts); |
| 161 | try do(alloc, writer, body, null, extras.join(.{ extras.omit(ctx, "this"), .{ .@"^this" = ctx.this, .this = item } }), opts); |
| 163 | 162 | } else { |
| 164 | 163 | try do(alloc, writer, body, null, extras.join(.{ ctx, .{ .this = item } }), opts); |
| 165 | 164 | } |