Skip to content

Commit a9adc17

Browse files
Fix build
1 parent 6b9d6b8 commit a9adc17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/gentype/TranslateStructure.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ let rec addAnnotationsToTypes_ ~config ~(expr : Typedtree.expression)
1111
let aName =
1212
if aName = "*opt*" then
1313
match arg_label with
14-
| Optional l ->
15-
l
14+
| Optional l -> l
1615
| _ -> "" (* should not happen *)
1716
else aName
1817
in
@@ -56,6 +55,7 @@ and addAnnotationsToFields ~config (expr : Typedtree.expression)
5655
in
5756
({field with nameJS = name} :: nextFields1, types1)
5857
| _ -> (fields, argTypes)
58+
[@@live]
5959

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

0 commit comments

Comments
 (0)