Skip to content

Commit 2731ac8

Browse files
committed
change outcome printer to adjust for uncurried the same way that the rest of the code does
1 parent 9ac526e commit 2731ac8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jscomp/syntax/src/res_outcome_printer.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ let rec printOutTypeDoc (outType : Outcometree.out_type) =
322322
]
323323

324324
and printOutArrowType ~uncurried typ =
325-
let uncurried =
326-
if !Config.uncurried <> Legacy then not uncurried else uncurried
327-
in
325+
let uncurried = Res_uncurried.getDotted ~uncurried !Config.uncurried in
328326
let typArgs, typ = collectArrowArgs typ [] in
329327
let args =
330328
Doc.join

0 commit comments

Comments
 (0)