roc/crates/compiler/solve
Ayaz Hafiz 1799d6ed0e
Construct exhaustiveness branches with condition, not branch, variable
Previously we would construct the shapes of unions used in the pattern
tree for exhaustiveness checking using the type of the branch patterns,
rather than the type of the condition variable. Clearly we want to
always use the condition variable, otherwise some branches will be
seen as exhaustive, when they are not!

To do this, we now index into the condition variable while refying the
patterns to build the tree for exhaustiveness checking.

Closes #4068
2022-09-19 13:37:59 -05:00
..
docs Add language to all fenced code blocks 2022-09-09 01:12:31 -06:00
src Construct exhaustiveness branches with condition, not branch, variable 2022-09-19 13:37:59 -05:00
tests Support unification of extension types with uninhabited branches 2022-09-19 10:32:39 -05:00
Cargo.toml Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00