# Fix bad source locations in switch capture errors · gitcafe/zig

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

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

Visibility: public

Requested revision: 42dc7539c5b0a39e9b64c5ad92757945b0ca05ad

Requested commit: 42dc7539c5b0a39e9b64c5ad92757945b0ca05ad

Commit: 42dc7539c5b0a39e9b64c5ad92757945b0ca05ad

Tree: 6cdf873c6800aebccdd8c03a443f9594acb84729

Author: mlugg

Committer: mlugg

## Message

```
Fix bad source locations in switch capture errors

To do this, I expanded SwitchProngSrc a bit. Several of the tags there
aren't actually used by any current errors, but they're there for
consistency and if we ever need them.

Also delete a now-redundant test and fix another.

```

## Parents

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

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