# Sema: add \`@errorCast\` which works for both error sets and error unions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/63bd2bff12992aef0ce23ae4b344e9cb5d65f05d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 63bd2bff12992aef0ce23ae4b344e9cb5d65f05d

Requested commit: 63bd2bff12992aef0ce23ae4b344e9cb5d65f05d

Commit: 63bd2bff12992aef0ce23ae4b344e9cb5d65f05d

Tree: a26b65da14fca381be9266f41f504c332efc3c4b

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: add `@errorCast` which works for both error sets and error unions

Closes #17343

```

## Parents

- [d8bfbbbf25984cfdc4d50a92569523a0a151d9e6](https://git.cafe/gitcafe/zig/commit/d8bfbbbf25984cfdc4d50a92569523a0a151d9e6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/63bd2bff12992aef0ce23ae4b344e9cb5d65f05d?format=markdown)
