# fix handling of comptime-only union fields in \`Type.getUnionLayout\` \(\#25182\) · gitcafe/zig

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

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

Visibility: public

Requested revision: e14540399c1be3c052467a576bd317ea12194cdd

Requested commit: e14540399c1be3c052467a576bd317ea12194cdd

Commit: e14540399c1be3c052467a576bd317ea12194cdd

Tree: 3a4850c968e9d211eae6a32aa02c93f03990f96e

Author: Silver

Committer: Alex Rønne Petersen

## Message

```
fix handling of comptime-only union fields in `Type.getUnionLayout` (#25182)

Fixes #25180
```

## Parents

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

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