File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -323,7 +323,8 @@ let rewrite_optional_inline_record_fields = function
323323 {
324324 typ with
325325 ptyp_desc =
326- Ptyp_constr ({txt = Lident " option" ; loc = typ.ptyp_loc}, [typ]);
326+ Ptyp_constr
327+ ({txt = Lident " option" ; loc = typ.ptyp_loc}, [typ]);
327328 }
328329 in
329330 {ld with pld_type = typ}
@@ -457,7 +458,10 @@ let transl_declaration ~type_record_as_object ~untagged_wfc env sdecl id =
457458 Location. prerr_warning loc Warnings. Constraint_on_gadt );
458459 let scstrs =
459460 Ext_list. map scstrs (fun ({pcd_args} as cstr ) ->
460- {cstr with pcd_args = rewrite_optional_inline_record_fields pcd_args})
461+ {
462+ cstr with
463+ pcd_args = rewrite_optional_inline_record_fields pcd_args;
464+ })
461465 in
462466 let all_constrs = ref StringSet. empty in
463467 List. iter
You can’t perform that action at this time.
0 commit comments