Skip to content

Commit 9247327

Browse files
authored
Fix outcome printer in uncurried mode (#6353)
* change outcome printer to adjust for uncurried the same way that the rest of the code does * changelog
1 parent 9ac526e commit 9247327

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
# 11.0.0-rc.2 (Unreleased)
1414

15+
#### :bug: Bug Fix
16+
17+
- Fixed outcome printer resolution of uncurried config. https://github.com/rescript-lang/rescript-compiler/pull/6353
18+
1519
# 11.0.0-rc.1
1620

1721
#### :rocket: New Feature

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)