Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit bfae0c7

Browse files
glennslcristianoc
authored andcommitted
outcome-printer: fix nullary uncurried function type
1 parent cf31d9b commit bfae0c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/res_outcome_printer.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ let printPolyVarIdent txt =
243243
) ->
244244
(* Js.Fn.arity0<t> -> (.) => t *)
245245
Doc.concat [
246-
Doc.text "(.) => ";
246+
Doc.text "(. ()) => ";
247247
printOutTypeDoc typ;
248248
]
249249
| Otyp_constr (

tests/oprint/expected/oprint.resi.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ module Js: {
201201
}
202202
type arity0 = (. ()) => unit
203203
type arity0b = (. ()) => int
204-
type arity0c = (.) => (.) => array<int>
205-
type arity0d = (.) => unit => unit
204+
type arity0c = (. ()) => (. ()) => array<int>
205+
type arity0d = (. ()) => unit => unit
206206
type arity1 = (. int) => int
207207
type arity2 = (. int, int) => int
208208
type arity3 = (. int, int, int) => int
@@ -485,4 +485,4 @@ and ASet: {
485485
type emptyObject = {.}
486486
let f: (~x: 'a=?, ~y: 'b) => option<'a>
487487
type call = CleanStart
488-
let f: (~a: int=?, unit) => int
488+
let f: (~a: int=?, unit) => int

0 commit comments

Comments
 (0)