# AstGen: implement compile error for useless locals · gitcafe/zig

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

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

Visibility: public

Requested revision: cffa22a658d23bdedbdd7e23853b80d856e43627

Requested commit: cffa22a658d23bdedbdd7e23853b80d856e43627

Commit: cffa22a658d23bdedbdd7e23853b80d856e43627

Tree: f528655756630f403bba344d76a9ae634424d7d6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: implement compile error for useless locals

When a local variable has an initialization expression of type
'noreturn', emit a compile error. This brings this branch closer
to parity with master branch.

```

## Parents

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

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