mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 16:30:04 +03:00
1799d6ed0e
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 |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |