Skip to content

Commit

Permalink
Fix issue where curried function was not supported with untagged vari…
Browse files Browse the repository at this point in the history
…ants.
  • Loading branch information
cristianoc committed Nov 6, 2023
1 parent 6369d60 commit 36510a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jscomp/ml/ast_untagged_variants.ml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ let get_block_type ~env (cstr : Types.constructor_declaration) :
block_type option =
match (process_untagged cstr.cd_attributes, cstr.cd_args) with
| false, _ -> None
| true, Cstr_tuple [{desc = Tconstr _} as t] when get_block_type_from_typ ~env t |> Option.is_some -> get_block_type_from_typ ~env t
| true, Cstr_tuple [t] when get_block_type_from_typ ~env t |> Option.is_some -> get_block_type_from_typ ~env t
| true, Cstr_tuple [ty] -> (
let default = Some UnknownType in
match !extract_concrete_typedecl env ty with
Expand Down

0 comments on commit 36510a1

Please sign in to comment.