# AstGen: detect redeclaration of function parameters · gitcafe/zig

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

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

Visibility: public

Requested revision: 41336acb0bb89dd23ef9c49b15d91a847f6796bc

Requested commit: 41336acb0bb89dd23ef9c49b15d91a847f6796bc

Commit: 41336acb0bb89dd23ef9c49b15d91a847f6796bc

Tree: 4823d19caddb3cd25c7a6e5a4b44ca7a2e0d5c03

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: detect redeclaration of function parameters

Also improve redeclaration error message to include the category of
variable.

```

## Parents

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

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