Commit 7d4c8d7054

Jacob G-W <jacoblevgw@gmail.com>
2021-06-09 13:27:22
stage2: make loop vars be comptime if they are inline
thanks @Vexu
1 parent 2092481
Changed files (1)
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;
     };