# fix anon enum literal used with switch on union\(enum\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 25ac2fe8cd817977f3d5a8677cbe067ad2684d66

Requested commit: 25ac2fe8cd817977f3d5a8677cbe067ad2684d66

Commit: 25ac2fe8cd817977f3d5a8677cbe067ad2684d66

Tree: 4282bf4c22820ce357f68e06472bdc405ce5e04b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix anon enum literal used with switch on union(enum)

closes #2141
closes #2142

```

## Parents

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

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