# InternPool: add representation for value of empty enums and unions · gitcafe/zig

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

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

Visibility: public

Requested revision: a0d4ef0acf50db06fdde8ff229d20d15afc7d402

Requested commit: a0d4ef0acf50db06fdde8ff229d20d15afc7d402

Commit: a0d4ef0acf50db06fdde8ff229d20d15afc7d402

Tree: 92b320040e5a979d569a5284e71c6fcdf7ee893f

Author: mlugg

Committer: Andrew Kelley

## Message

```
InternPool: add representation for value of empty enums and unions

This is a bit odd, because this value doesn't actually exist:
see #15909. This gets all the empty enum/union behavior tests passing.

Also adds an assertion to `Sema.analyzeBodyInner` which would have
helped figure out the issue here much more quickly.

```

## Parents

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

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