# Sema: better \`switch_block_err_union\` result location if operand has wrong type · gitcafe/zig

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

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

Visibility: public

Requested revision: dbfeade22114d03c5f6dbf1f3f1d5946a10877a7

Requested commit: dbfeade22114d03c5f6dbf1f3f1d5946a10877a7

Commit: dbfeade22114d03c5f6dbf1f3f1d5946a10877a7

Tree: 530814d90c591b42c1f06f505b969180ebd24459

Author: Justus Klausecker

Committer: Matthew Lugg

## Message

```
Sema: better `switch_block_err_union` result location if operand has wrong type

also fixes related test case and makes it run everywhere, not just on x86_64-linux!

```

## Parents

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

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