@errorCast
on error unions should allow disjoint sets
#17355
Labels
Milestone
@errorCast
on error unions should allow disjoint sets
#17355
Zig Version
0.12.0-dev.705+af40bce08
Steps to Reproduce and Observed Behavior
Expected Behavior
Test passed. All the logic for disjoint sets should be skipped when casting error unions.
However, there should be a safety check which would be triggered in the above example if
foo
is changed to return an error. In order to close this issue, an additional runtime safety test is needed to cover this.The text was updated successfully, but these errors were encountered: