# disallow '\_' prong when switching on non-exhaustive tagged union · gitcafe/zig

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

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

Visibility: public

Requested revision: 1e835e0fccfd82deb31922ffdee821b0b418709f

Requested commit: 1e835e0fccfd82deb31922ffdee821b0b418709f

Commit: 1e835e0fccfd82deb31922ffdee821b0b418709f

Tree: 87e520b7517faba7ce3222c03dbf5496105f1304

Author: Vexu

Committer: Vexu

## Message

```
disallow '_' prong when switching on non-exhaustive tagged union

A tagged union cannot legally be initiated to an invalid enumeration

```

## Parents

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

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