aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-08-15 11:41:21 +0100
committermlugg <mlugg@mlugg.co.uk>2023-08-15 11:42:25 +0100
commit6e2eb208aac8bb6065992bd19a6c0cc772648263 (patch)
tree98121b431a9e058254d4df92874a1bd9d89eb4a1 /src/Sema.zig
parentf7b82ed416e32a9164c67a35924b9b99e86707fa (diff)
downloadzig-6e2eb208aac8bb6065992bd19a6c0cc772648263.tar.gz
zig-6e2eb208aac8bb6065992bd19a6c0cc772648263.zip
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 (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig1
1 files changed, 1 insertions, 0 deletions
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) {