Skip to content

Commit

Permalink
remove unnecessary [Ptyp_any]
Browse files Browse the repository at this point in the history
Signed-off-by: David Vulakh <[email protected]>
  • Loading branch information
dvulakh committed Aug 9, 2024
1 parent ec56a39 commit 5742136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ end = struct
| { ast= {ptyp_desc= Ptyp_poly _; _}
; ctx= Typ {ptyp_desc= Ptyp_arrow _; _} } ->
true
| { ast= {ptyp_desc= Ptyp_var (_, _) | Ptyp_any; _}
| { ast= {ptyp_desc= Ptyp_var (_, _); _}
; ctx= Typ {ptyp_desc= Ptyp_constr (_, args); _} }
when List.length args > 1 ->
(* Type variables and _ do not need parens when they appear as an
Expand Down

0 comments on commit 5742136

Please sign in to comment.