# Move switch case value coercion from AstGen to Sema · gitcafe/zig

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

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

Visibility: public

Requested revision: cebd80032a2dcc9f516f8183d1bfade5d1f12e45

Requested commit: cebd80032a2dcc9f516f8183d1bfade5d1f12e45

Commit: cebd80032a2dcc9f516f8183d1bfade5d1f12e45

Tree: f4c669061d753840d12d8dbb4b232e5f2d4bafb0

Author: mlugg

Committer: mlugg

## Message

```
Move switch case value coercion from AstGen to Sema

This is in preparation for #2473. Also fixes a bug where switching on
bools allows invalid case combinations.

```

## Parents

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

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