Skip to content

Commit a6b20c6

Browse files
Format
1 parent cb3c962 commit a6b20c6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

compiler/ml/typedecl.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)