# sema: rework the comptime representation of comptime unions · gitcafe/zig

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

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

Visibility: public

Requested revision: f2a24b48e1221a8954ddf16e9070e1470ee13e8d

Requested commit: f2a24b48e1221a8954ddf16e9070e1470ee13e8d

Commit: f2a24b48e1221a8954ddf16e9070e1470ee13e8d

Tree: 65443a1d67bb03be28927643462f92568fedbbc0

Author: kcbanner

Committer: kcbanner

## Message

```
sema: rework the comptime representation of comptime unions

When the tag is not known, it's set to `.none`. In this case, the value is either an
array of bytes (for extern unions) or an integer (for packed unions).

```

## Parents

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

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