# switch on enum which only has 1 field is comptime known · gitcafe/zig

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

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

Visibility: public

Requested revision: f464fe14f4ece387935dbe2bb6b73ecf466c3f83

Requested commit: f464fe14f4ece387935dbe2bb6b73ecf466c3f83

Commit: f464fe14f4ece387935dbe2bb6b73ecf466c3f83

Tree: 6eeb66f228b9ab0e41d9a7d35bb19f2b7e9ee556

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
switch on enum which only has 1 field is comptime known

closes #593

```

## Parents

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

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