# AstGen: fix function declarations · gitcafe/zig

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

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

Visibility: public

Requested revision: 786e238a7f1034a09bc0471b3796051abb874e14

Requested commit: 786e238a7f1034a09bc0471b3796051abb874e14

Commit: 786e238a7f1034a09bc0471b3796051abb874e14

Tree: 56d4370762709805936e21ceb29f1b13ae0a54bc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: fix function declarations

They were putting their return type expressions into the wrong ZIR
block, resulting in a compiler crash.

```

## Parents

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

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