# fix tagged union with only 1 field tripping assertion · gitcafe/zig

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

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

Visibility: public

Requested revision: 22e39e1e5ab42c2c3d33eeb6797f5835b2004fe3

Requested commit: 22e39e1e5ab42c2c3d33eeb6797f5835b2004fe3

Commit: 22e39e1e5ab42c2c3d33eeb6797f5835b2004fe3

Tree: c5c9dc35157c268c7196abdc83aa45e1bdad10ee

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix tagged union with only 1 field tripping assertion

closes #1495

now the tag type of an enum with only 1 item is comptime_int.

```

## Parents

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

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