Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerschmidt committed Sep 25, 2023
1 parent e17be30 commit 46a8b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jscomp/gentype/TranslateStructure.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ let rec addAnnotationsToTypes_ ~config ~(expr : Typedtree.expression)
let aName =
if aName = "*opt*" then
match arg_label with
| Optional l ->
l
| Optional l -> l
| _ -> "" (* should not happen *)
else aName
in
Expand Down Expand Up @@ -56,6 +55,7 @@ and addAnnotationsToFields ~config (expr : Typedtree.expression)
in
({field with nameJS = name} :: nextFields1, types1)
| _ -> (fields, argTypes)
[@@live]

(** Recover from expr the renaming annotations on named arguments. *)
let addAnnotationsToFunctionType ~config (expr : Typedtree.expression)
Expand Down

0 comments on commit 46a8b33

Please sign in to comment.