# fix crash when switching on enum with 1 field and no switch prongs · gitcafe/zig

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

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

Visibility: public

Requested revision: 5b7ae86af488745fc93cdbaff11bf2438938274a

Requested commit: 5b7ae86af488745fc93cdbaff11bf2438938274a

Commit: 5b7ae86af488745fc93cdbaff11bf2438938274a

Tree: 1848e0b2e96ea622f4a6fc8f1bb31c7721331100

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix crash when switching on enum with 1 field and no switch prongs

closes #712

```

## Parents

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

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