# AstGen: make array literals work like struct literals · gitcafe/zig

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

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

Visibility: public

Requested revision: 3df19b765d3b33cfda43b875adb714487bfb8c6b

Requested commit: 3df19b765d3b33cfda43b875adb714487bfb8c6b

Commit: 3df19b765d3b33cfda43b875adb714487bfb8c6b

Tree: b8325170ca693b5c94a569a256449a4dde0e6064

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: make array literals work like struct literals

Now, array literals will emit a coerce_result_ptr ZIR instruction just
like struct literals do. This makes for another passing behavior test case.

```

## Parents

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

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