aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_dequeue.zig
diff options
context:
space:
mode:
authorMatthew Lugg <mlugg@mlugg.co.uk>2025-12-20 19:03:22 +0000
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-12-21 13:07:03 +0000
commit5611779f391c9ae48c0abf7662b1e9020be6ea14 (patch)
tree0f9ea2887ce855db832743c9c73f0033161b9118 /lib/std/priority_dequeue.zig
parent3f08073f7d2f0cd8aa086f1618a74106bf35086d (diff)
downloadzig-5611779f391c9ae48c0abf7662b1e9020be6ea14.tar.gz
zig-5611779f391c9ae48c0abf7662b1e9020be6ea14.zip
Sema: fix nested error union coercions
Previously, `E1!void` failed to coerce to `E2!E1!void` because it tried to coerce the `E1` error to an `E2` if comptime-known and refused to attempt any other coercion. This is a strange language rule with no clear justification, and breaks real use cases (such as calling `getOne` on an `Io.Queue(E!T)`). Instead, only error *sets* should try to coerce to an "error" value of an error union type.
Diffstat (limited to 'lib/std/priority_dequeue.zig')
0 files changed, 0 insertions, 0 deletions