File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58118,7 +58118,7 @@ let transl_declaration env sdecl id =
58118
58118
raise(Error(sdecl.ptype_loc, Duplicate_constructor name));
58119
58119
all_constrs := StringSet.add name !all_constrs)
58120
58120
scstrs;
58121
- if List.length
58121
+ if not !Config.bs_only && List.length
58122
58122
(List.filter (fun cd -> cd.pcd_args <> Pcstr_tuple []) scstrs)
58123
58123
> (Config.max_tag + 1) then
58124
58124
raise(Error(sdecl.ptype_loc, Too_many_constructors));
Original file line number Diff line number Diff line change @@ -58118,7 +58118,7 @@ let transl_declaration env sdecl id =
58118
58118
raise(Error(sdecl.ptype_loc, Duplicate_constructor name));
58119
58119
all_constrs := StringSet.add name !all_constrs)
58120
58120
scstrs;
58121
- if List.length
58121
+ if not !Config.bs_only && List.length
58122
58122
(List.filter (fun cd -> cd.pcd_args <> Pcstr_tuple []) scstrs)
58123
58123
> (Config.max_tag + 1) then
58124
58124
raise(Error(sdecl.ptype_loc, Too_many_constructors));
Original file line number Diff line number Diff line change @@ -342337,7 +342337,7 @@ let transl_declaration env sdecl id =
342337
342337
raise(Error(sdecl.ptype_loc, Duplicate_constructor name));
342338
342338
all_constrs := StringSet.add name !all_constrs)
342339
342339
scstrs;
342340
- if List.length
342340
+ if not true && List.length
342341
342341
(List.filter (fun cd -> cd.pcd_args <> Pcstr_tuple []) scstrs)
342342
342342
> (Config.max_tag + 1) then
342343
342343
raise(Error(sdecl.ptype_loc, Too_many_constructors));
You can’t perform that action at this time.
0 commit comments