Skip to content

Commit

Permalink
Fix outcome printer in uncurried mode (#6353)
Browse files Browse the repository at this point in the history
* change outcome printer to adjust for uncurried the same way that the rest of the code does

* changelog
  • Loading branch information
zth committed Aug 17, 2023
1 parent 9ac526e commit 9247327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# 11.0.0-rc.2 (Unreleased)

#### :bug: Bug Fix

- Fixed outcome printer resolution of uncurried config. https://github.com/rescript-lang/rescript-compiler/pull/6353

# 11.0.0-rc.1

#### :rocket: New Feature
Expand Down
4 changes: 1 addition & 3 deletions jscomp/syntax/src/res_outcome_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,7 @@ let rec printOutTypeDoc (outType : Outcometree.out_type) =
]

and printOutArrowType ~uncurried typ =
let uncurried =
if !Config.uncurried <> Legacy then not uncurried else uncurried
in
let uncurried = Res_uncurried.getDotted ~uncurried !Config.uncurried in
let typArgs, typ = collectArrowArgs typ [] in
let args =
Doc.join
Expand Down

0 comments on commit 9247327

Please sign in to comment.