# Sema: fix invalid coercion \`\*\[n:x\]T\` \-\> \`\*\[m\]T\` for \`n \!= m\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 5333d2443a80a82b34940be68e4ca8d1129b7ab7

Requested commit: 5333d2443a80a82b34940be68e4ca8d1129b7ab7

Commit: 5333d2443a80a82b34940be68e4ca8d1129b7ab7

Tree: 49d430c90b50b7296638628635ac06665b58c3e3

Author: mlugg

Committer: Matthew Lugg

## Message

```
Sema: fix invalid coercion `*[n:x]T` -> `*[m]T` for `n != m`

The change in `Sema.coerceExtra` is just to avoid an unhelpful error
message, covered by the added test case.

Resolves: #22373

```

## Parents

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

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