diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-26 18:06:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-26 18:06:19 -0500 |
| commit | b0cd24f90ef159cc60c9607e9cc37af8b5bd147a (patch) | |
| tree | 34447045027e830bde4aca5fa43ecfd5342997f4 /src/Sema.zig | |
| parent | 728cc73819a6511e4402498a8146854b9278285f (diff) | |
| parent | 64865679cf173c024a01d158686fc1cc9965a012 (diff) | |
| download | zig-b0cd24f90ef159cc60c9607e9cc37af8b5bd147a.tar.gz zig-b0cd24f90ef159cc60c9607e9cc37af8b5bd147a.zip | |
Merge pull request #14070 from jacobly0/issue/14032
Fix #14032
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 2b4ef94a8f..de9018be6e 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -29708,6 +29708,12 @@ fn resolveLazyValue(sema: *Sema, val: Value) CompileError!void { const field_ptr = val.castTag(.comptime_field_ptr).?.data; return sema.resolveLazyValue(field_ptr.field_val); }, + .eu_payload, + .opt_payload, + => { + const sub_val = val.cast(Value.Payload.SubValue).?.data; + return sema.resolveLazyValue(sub_val); + }, .@"union" => { const union_val = val.castTag(.@"union").?.data; return sema.resolveLazyValue(union_val.val); @@ -29747,7 +29753,7 @@ pub fn resolveTypeLayout(sema: *Sema, ty: Type) CompileError!void { .Fn => { const info = ty.fnInfo(); if (info.is_generic) { - // Resolving of generic function types is defeerred to when + // Resolving of generic function types is deferred to when // the function is instantiated. return; } @@ -30201,7 +30207,7 @@ pub fn resolveTypeFully(sema: *Sema, ty: Type) CompileError!void { .Fn => { const info = ty.fnInfo(); if (info.is_generic) { - // Resolving of generic function types is defeerred to when + // Resolving of generic function types is deferred to when // the function is instantiated. return; } |
