# stage2: resolve type fully when resolving inferred allocs · gitcafe/zig

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

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

Visibility: public

Requested revision: 7d0b6956c0935807f0e5862c45da857e8e065c6b

Requested commit: 7d0b6956c0935807f0e5862c45da857e8e065c6b

Commit: 7d0b6956c0935807f0e5862c45da857e8e065c6b

Tree: d2b3df54d4bf185e326d4b4363958b5ed210698c

Author: Mitchell Hashimoto

Committer: Andrew Kelley

## Message

```
stage2: resolve type fully when resolving inferred allocs

We must resolve the type fully so that pointer children (i.e. slices)
are resolved. Additionally, we must resolve even if we can know the
value at comptime because the `alloc_inferred` ZIR always produces a
constant in the AIR.

Fixes #11181

```

## Parents

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

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