# stage2: sentinel comp during peer type resolution should use elem type · gitcafe/zig

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

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

Visibility: public

Requested revision: a7ca40b2817dbf3f2085141f32f20f431707391b

Requested commit: a7ca40b2817dbf3f2085141f32f20f431707391b

Commit: a7ca40b2817dbf3f2085141f32f20f431707391b

Tree: 620ebeb2fa323da8f0b66d9ff638a96bbb9a4c77

Author: Mitchell Hashimoto

Committer: Andrew Kelley

## Message

```
stage2: sentinel comp during peer type resolution should use elem type

We were using the array type, not the element type. Also, we should do
the sentinel comparison after we verify that the element types of both
are compatible.

```

## Parents

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

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