Skip to content

Commit c293649

Browse files
committed
Format OCaml
1 parent 6c0f9f0 commit c293649

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/ml/ast_untagged_variants.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,10 @@ let check_tag_field_conflicts (cstrs : Types.constructor_declaration list) =
495495
List.iter
496496
(fun (field : Types.label_declaration) ->
497497
(* Get the effective field name in JavaScript output *)
498-
let effective_field_name = match process_as_name field.ld_attributes with
499-
| Some as_name -> as_name (* Use @as name if present *)
500-
| None -> Ident.name field.ld_id (* Otherwise use field name *)
498+
let effective_field_name =
499+
match process_as_name field.ld_attributes with
500+
| Some as_name -> as_name (* Use @as name if present *)
501+
| None -> Ident.name field.ld_id (* Otherwise use field name *)
501502
in
502503
(* Check if effective field name conflicts with tag *)
503504
if effective_field_name = tag_name then

0 commit comments

Comments
 (0)