We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb413b2 + 7448900 commit 425e41fCopy full SHA for 425e41f
1 file changed
src/analysis/destruct.ml
@@ -696,11 +696,10 @@ let refine_and_generate_branches patt config source patterns sub_patterns =
696
(top_patt.Typedtree.pat_loc, str)
697
698
let refine_complete_match (type a) parents (patt : a Typedtree.general_pattern)
699
- config source patterns =
+ config source (patterns : Typedtree.pattern list) =
700
match Typedtree.classify_pattern patt with
701
| Computation -> raise (Not_allowed "computation pattern")
702
| Value ->
703
- let _ : Typedtree.value Typedtree.general_pattern = patt in
704
if not (destructible patt) then raise Nothing_to_do
705
else
706
let ty = patt.Typedtree.pat_type in
0 commit comments