# Sema: fix adhoc inferred error sets in analyzeIsNonErrComptimeOnly · gitcafe/zig

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

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

Visibility: public

Requested revision: 012cbdb422fd4d89fe24d272a22f21376a4ab884

Requested commit: 012cbdb422fd4d89fe24d272a22f21376a4ab884

Commit: 012cbdb422fd4d89fe24d272a22f21376a4ab884

Tree: 5f453fd03c7561be9ccee04fb48fcbfb41ffa527

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix adhoc inferred error sets in analyzeIsNonErrComptimeOnly

The logic incorrectly assumed that adhoc_inferred_error_set_type would
be part of the inferred_error_set InternPool.Key when it actually is
part of `simple_type`.

Regressed in the #16318 branch.

Found from compiling Bun. Unfortunately we do not have a behavior test
reduction for this bug.

```

## Parents

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

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