mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: make loop vars be comptime if they are inline
thanks @Vexu
This commit is contained in:
parent
2092481265
commit
7d4c8d7054
@ -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;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user