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.
This commit is contained in:
mlugg 2023-08-15 11:41:21 +01:00
parent f7b82ed416
commit 6e2eb208aa
No known key found for this signature in database
GPG Key ID: 58978E823BDE3EF9

View File

@ -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) {