Skip to content

Commit 11b7a53

Browse files
committed
Lift two many constructor restriction on BuckleScript backend
1 parent ce53174 commit 11b7a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typing/typedecl.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ let transl_declaration env sdecl id =
444444
raise(Error(sdecl.ptype_loc, Duplicate_constructor name));
445445
all_constrs := StringSet.add name !all_constrs)
446446
scstrs;
447-
if List.length
447+
if not !Config.bs_only && List.length
448448
(List.filter (fun cd -> cd.pcd_args <> Pcstr_tuple []) scstrs)
449449
> (Config.max_tag + 1) then
450450
raise(Error(sdecl.ptype_loc, Too_many_constructors));

0 commit comments

Comments
 (0)