stage2: make loop vars be comptime if they are inline

thanks @Vexu
This commit is contained in:
Jacob G-W 2021-06-09 07:27:22 -04:00 committed by Andrew Kelley
parent 2092481265
commit 7d4c8d7054

View File

@ -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;
};