Skip to content

Commit

Permalink
ppx: (_:ty) is a catch-all case too (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
Octachron authored and aantron committed Nov 27, 2018
1 parent 5cfa9da commit b40964a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ppx/ppx_lwt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let def_loc txt =
let is_catchall case =
let rec is_catchall_pat p = match p.ppat_desc with
| Ppat_any | Ppat_var _ -> true
| Ppat_alias (p, _) -> is_catchall_pat p
| Ppat_alias (p, _) | Ppat_constraint (p,_) -> is_catchall_pat p
| _ -> false
in
case.pc_guard = None && is_catchall_pat case.pc_lhs
Expand Down

0 comments on commit b40964a

Please sign in to comment.