roc/crates/compiler/can
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
..
src Construct exhaustiveness branches with condition, not branch, variable 2022-09-19 13:37:59 -05:00
tests s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Cargo.toml Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00