We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cdb66d commit d2556bbCopy full SHA for d2556bb
jscomp/ml/typedecl.ml
@@ -1719,7 +1719,9 @@ let rec arity_from_arrow_type env core_type ty =
1719
let parse_arity env core_type ty =
1720
match Ast_uncurried.uncurried_type_get_arity_opt ~env ty with
1721
| Some arity ->
1722
- let from_constructor = Ast_uncurried.uncurried_type_get_arity_opt ~env:Env.empty ty = None in
+ let from_constructor = match ty.desc with
1723
+ | Tconstr (_, _, _) -> not (Ast_uncurried_utils.type_is_uncurried_fun ty)
1724
+ | _ -> false in
1725
(arity, from_constructor)
1726
| None -> (arity_from_arrow_type env core_type ty, false)
1727
0 commit comments