# stage2: fix coercion of error set to error union · gitcafe/zig

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

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

Visibility: public

Requested revision: bea447a6378fbc65eb79f31c5f1770c75850074c

Requested commit: bea447a6378fbc65eb79f31c5f1770c75850074c

Commit: bea447a6378fbc65eb79f31c5f1770c75850074c

Tree: 95f989734bde6ec6232700933f308f3bf8ffc8e2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix coercion of error set to error union

When returning an error set or an error union from a function which has
an inferred error set, it populates the error names in addition to the
set of functions. This can have false negatives, meaning that after
checking the map of an unresolved error set, one must do full error set
resolution before emitting a compile error.

```

## Parents

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

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