# AstGen: detect duplicate field names · gitcafe/zig

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

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

Visibility: public

Requested revision: 1b8f7e46fa33cda57caf39c5a5a0f5f52335a99b

Requested commit: 1b8f7e46fa33cda57caf39c5a5a0f5f52335a99b

Commit: 1b8f7e46fa33cda57caf39c5a5a0f5f52335a99b

Tree: 9ae103c1d6c72e8f29aae0adb4dbc99208781244

Author: David Rubin

Committer: GitHub

## Message

```
AstGen: detect duplicate field names

This logic was previously in Sema, which was unnecessary complexity, and meant the issue was not detected unless the declaration was semantically analyzed. This commit finishes the work which 941090d started.

Resolves: #17916
```

## Parents

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

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