aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-08-10 11:50:01 -0700
committerGitHub <noreply@github.com>2023-08-10 11:50:01 -0700
commit275e926cf851144ef6a4c64963e47f3b955870cc (patch)
treeed1717db1a7f6c8c931d5c08e244a11a2334ff93 /src/type.zig
parent0461a64a93f0596e98b62d596bb547e5455577d2 (diff)
parentf32b9bc776bfffe0a1adadc013ff3fa3e5d6d34b (diff)
downloadzig-275e926cf851144ef6a4c64963e47f3b955870cc.tar.gz
zig-275e926cf851144ef6a4c64963e47f3b955870cc.zip
Merge pull request #16604 from mlugg/result-type-shenanigans
Fix RLS issues, fix crash on invalid result type for `@splat`, refactor some bits of generic instantiations
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index d1d182714f..3db11ac42e 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -3039,6 +3039,7 @@ pub const Type = struct {
return switch (mod.intern_pool.indexToKey(ty.toIntern())) {
.struct_type => |struct_type| {
const struct_obj = mod.structPtrUnwrap(struct_type.index).?;
+ assert(struct_obj.haveFieldTypes());
return struct_obj.fields.values()[index].ty;
},
.union_type => |union_type| {