# Sema: handle generated tag enums in union field order check · gitcafe/zig

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

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

Visibility: public

Requested revision: 2ef72f84ca3cc74b24c3a89e52c72dce66e31638

Requested commit: 2ef72f84ca3cc74b24c3a89e52c72dce66e31638

Commit: 2ef72f84ca3cc74b24c3a89e52c72dce66e31638

Tree: 432c5b343932de5d101e32c9abb6a15d4d459e16

Author: Ian Johnson

Committer: Andrew Kelley

## Message

```
Sema: handle generated tag enums in union field order check

Fixes #23059

The "note: enum field here" now references the field in the base union type rather than crashing.

```

## Parents

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

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