# dwarf: do not use \`Type.errorSetNames\(\)\` for inferred error sets · gitcafe/zig

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

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

Visibility: public

Requested revision: e444e69dc4f9e6a1f25f6081bd0cd4d45f4c9c93

Requested commit: e444e69dc4f9e6a1f25f6081bd0cd4d45f4c9c93

Commit: e444e69dc4f9e6a1f25f6081bd0cd4d45f4c9c93

Tree: 35f7daf4092548c5cff732a7edd143c313a93944

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
dwarf: do not use `Type.errorSetNames()` for inferred error sets

Otherwise, we risk tripping an assertion in `Type.errorSetNames()`
in case the inferred error set was not yet fully resolved. This so
far only surfaced when Dwarf triggers recursive analysis of an
error set as part of emitting debug info for an error union.

```

## Parents

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

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