# Fix crash when generating constant unions with single field · gitcafe/zig

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

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

Visibility: public

Requested revision: bab93e75611de79a1a1e898b0c9e45905817189f

Requested commit: bab93e75611de79a1a1e898b0c9e45905817189f

Commit: bab93e75611de79a1a1e898b0c9e45905817189f

Tree: 9af97dc0971ee3849b99fd7ab7e9610e492c10ff

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
Fix crash when generating constant unions with single field

```

## Parents

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

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