zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 7d4c8d70545241495324f919d57426559b8d07d5 (tree)
parent 2092481265ce4f51529888690e648608dbae52c6
Author: Jacob G-W <jacoblevgw@gmail.com>
Date:   Wed,  9 Jun 2021 07:27:22 -0400

stage2: make loop vars be comptime if they are inline

thanks @Vexu

Diffstat:
Msrc/AstGen.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/AstGen.zig b/src/AstGen.zig @@ -5405,7 +5405,7 @@ fn forExpr( .name = index_name, .ptr = index_ptr, .token_src = index_token, - .is_comptime = parent_gz.force_comptime, + .is_comptime = is_inline, }; break :blk &index_scope.base; };