# stage1: fix exporting enums · gitcafe/zig

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

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

Visibility: public

Requested revision: 67b201982bb1a0b4650b7ff222ef22875c32c810

Requested commit: 67b201982bb1a0b4650b7ff222ef22875c32c810

Commit: 67b201982bb1a0b4650b7ff222ef22875c32c810

Tree: 76fb74ec68c16955073552e437fc413fdb68b7f1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage1: fix exporting enums

After extern enums were removed, stage1 was left in an incorrect state
of checking for `extern enum` for exported enums. This commit fixes it
to look for an explicit integer tag type instead, and adds test coverage
for the compile error case as well as the success case.

closes #9498

```

## Parents

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

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