# stage1: Make sure union\(enum\(T\)\) is valid · gitcafe/zig

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

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

Visibility: public

Requested revision: 78840c4ab20d844ca866fa0ab437d72fdec62d0d

Requested commit: 78840c4ab20d844ca866fa0ab437d72fdec62d0d

Commit: 78840c4ab20d844ca866fa0ab437d72fdec62d0d

Tree: afd5ee223f3c9ec0a13b9fa621d43c62e66bf9f5

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
stage1: Make sure union(enum(T)) is valid

The T type should be wide enough to fit values in the  0...num field
range.

Closes #6988

```

## Parents

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

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