Skip to content

Commit

Permalink
use metaquot in exception pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Niols committed Feb 17, 2022
1 parent 740e5f8 commit c541ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/expander/matchExpander.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let mk_with_exception
List.map
(fun case ->
match case with
| { pc_lhs = { ppat_desc = Ppat_exception pc_lhs; _ }; _ } ->
| { pc_lhs = [%pat? exception [%p? pc_lhs]]; _ } ->
{ case with pc_lhs }
| _ -> assert false)
exception_cases
Expand Down

0 comments on commit c541ef6

Please sign in to comment.