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 ce53174 commit 11b7a53Copy full SHA for 11b7a53
typing/typedecl.ml
@@ -444,7 +444,7 @@ let transl_declaration env sdecl id =
444
raise(Error(sdecl.ptype_loc, Duplicate_constructor name));
445
all_constrs := StringSet.add name !all_constrs)
446
scstrs;
447
- if List.length
+ if not !Config.bs_only && List.length
448
(List.filter (fun cd -> cd.pcd_args <> Pcstr_tuple []) scstrs)
449
> (Config.max_tag + 1) then
450
raise(Error(sdecl.ptype_loc, Too_many_constructors));
0 commit comments