aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-03-12 11:14:17 +0200
committerVeikka Tuominen <git@vexu.eu>2022-03-12 11:14:17 +0200
commit98a01f99c9b6834608055417169c2b3531ea67b6 (patch)
treeee920753881775df052875b2029ad8eca2e934d5 /src/Sema.zig
parente5d4a694ea7dd251e10d6434c9321b5e0a548d4b (diff)
downloadzig-98a01f99c9b6834608055417169c2b3531ea67b6.tar.gz
zig-98a01f99c9b6834608055417169c2b3531ea67b6.zip
Sema: fix typo in resolvePeerTypes
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 82acbab9e5..860d9d63ac 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -18910,7 +18910,7 @@ fn resolvePeerTypes(
}
const chosen_set_ty = err_set_ty orelse chosen_ty.errorUnionSet();
- const candidate_set_ty = chosen_ty.errorUnionSet();
+ const candidate_set_ty = candidate_ty.errorUnionSet();
if (.ok == try sema.coerceInMemoryAllowedErrorSets(block, chosen_set_ty, candidate_set_ty, src, src)) {
err_set_ty = chosen_set_ty;