Skip to content

Commit 41fa202

Browse files
committed
Fix issue where curried function was not supported with untagged variants.
1 parent 6369d60 commit 41fa202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jscomp/ml/ast_untagged_variants.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ let get_block_type ~env (cstr : Types.constructor_declaration) :
189189
block_type option =
190190
match (process_untagged cstr.cd_attributes, cstr.cd_args) with
191191
| false, _ -> None
192-
| 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
192+
| true, Cstr_tuple [t] when get_block_type_from_typ ~env t |> Option.is_some -> get_block_type_from_typ ~env t
193193
| true, Cstr_tuple [ty] -> (
194194
let default = Some UnknownType in
195195
match !extract_concrete_typedecl env ty with

0 commit comments

Comments
 (0)