commit 6e2eb208aac8bb6065992bd19a6c0cc772648263 (tree)
parent f7b82ed416e32a9164c67a35924b9b99e86707fa
Author: mlugg <mlugg@mlugg.co.uk>
Date: Tue, 15 Aug 2023 11:41:21 +0100
Sema: queue type resolution whem emitting array_elem_val
This type not being resolved was a bug which was being triggered by the
next commit.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/Sema.zig b/src/Sema.zig
@@ -26872,6 +26872,7 @@ fn elemValArray(
const runtime_src = if (maybe_undef_array_val != null) elem_index_src else array_src;
try sema.requireRuntimeBlock(block, src, runtime_src);
+ try sema.queueFullTypeResolution(array_ty);
if (oob_safety and block.wantSafety()) {
// Runtime check is only needed if unable to comptime check
if (maybe_index_val == null) {