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

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

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

Visibility: public

Requested revision: 0bce4a4e05ef377b82667997870e73a11dc98c88

Requested commit: 0bce4a4e05ef377b82667997870e73a11dc98c88

Commit: 0bce4a4e05ef377b82667997870e73a11dc98c88

Tree: d3c72bd340e8df7bd03b41613c6416275f50f769

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

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

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