From 6e2eb208aac8bb6065992bd19a6c0cc772648263 Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 15 Aug 2023 11:41:21 +0100 Subject: [PATCH] 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. --- src/Sema.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sema.zig b/src/Sema.zig index e7d1df0ebb..4acae88b04 100644 --- 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) {