Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1752 +/- ##
==========================================
+ Coverage 49.52% 50.17% +0.65%
==========================================
Files 241 231 -10
Lines 26676 25513 -1163
==========================================
- Hits 13210 12801 -409
+ Misses 13466 12712 -754
🚀 New features to boost your workflow:
|
|
I'm getting a crash when I try typing
|
|
Should be fixed now. |
The And, if the right hand side ( It seems like you do indeed need to distinguish duplicate labels and duplicate variables? |
|
Looks good to me |
cyrus-
left a comment
There was a problem hiding this comment.
lgtm other than needing a few more tests
…cking-in-patterns
|
@cyrus- ready for review |
|
@cyrus- resolved merge conflicts, checked that josh's example code above works, should be good to merge |
src/language/statics/Statics.re
Outdated
There was a problem hiding this comment.
no, at least not wrt dev, but there was a benign dev bug that was passing in duplicate expression-level labels into the pattern duplicates argument. benign bc the pattern duplicates arg would then later be overwritten. fixed that here while reviewing.
|
|
||
| let get_duplicate_bindings = (pat: t) => { | ||
| let bindings = bound_vars(pat); | ||
| List.filter( |
There was a problem hiding this comment.
should be a fn in listutil that does this
There was a problem hiding this comment.
i think you mean the dedup fn? that returns entire list deduplicated, this returns just the duplicates.



Causes Hazel to give an error message on patterns that contain duplicate variables, including labels in tuples.

Added a new get_duplicate_bindings function in Term.re.
Changed Duplicate type in Self.re to DuplicateLabel so it isn't confused with the new DuplicateVar type.