# stage1: Create a new declaration scope for union enum types · gitcafe/zig

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

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

Visibility: public

Requested revision: e18abab55aea4a5c3b347274e41de9fdc24e950c

Requested commit: e18abab55aea4a5c3b347274e41de9fdc24e950c

Commit: e18abab55aea4a5c3b347274e41de9fdc24e950c

Tree: fdf2716108151ffcddde84eaf5431fb27fbfac5f

Author: LemonBoy

Committer: Veikka Tuominen

## Message

```
stage1: Create a new declaration scope for union enum types

Making the enum type share the scope with the parent union means every
declaration "bleeds" into the enum scope.
Let's mint a fresh empty scope for the enum type.

Thanks to @Vexu for the test case.

Closes #7532

```

## Parents

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

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