# Merge pull request \#18584 from Techatrix/fix-switch-on-err · gitcafe/zig

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

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

Visibility: public

Requested revision: fe870418b1d83ad4e08a8fba9785289735d29f4f

Requested commit: fe870418b1d83ad4e08a8fba9785289735d29f4f

Commit: fe870418b1d83ad4e08a8fba9785289735d29f4f

Tree: b7fe04fb408e99e5799433447381e0f741ce5f54

Author: Andrew Kelley

Committer: GitHub

## Message

```
Merge pull request #18584 from Techatrix/fix-switch-on-err

fix ast gen failure to catch incorrect by ref error captures
```

## Parents

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

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

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