# fix struct inside function referencing local const · gitcafe/zig

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

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

Visibility: public

Requested revision: bb39e503c0179b18c4e440bae021e786c70deb06

Requested commit: bb39e503c0179b18c4e440bae021e786c70deb06

Commit: bb39e503c0179b18c4e440bae021e786c70deb06

Tree: 9f65059a937a5377435f04ed1defad51d0224315

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix struct inside function referencing local const

closes #672

the crash and compile errors are fixed but structs
inside functions still get named after the functions
they're in. this will be fixed later.

```

## Parents

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

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