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

Commit c18ca3b

Browse files
glennslcristianoc
authored andcommitted
outcome-printer: add parens around alias type
1 parent bfae0c7 commit c18ca3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/res_outcome_printer.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ let printPolyVarIdent txt =
233233
)
234234
| Otyp_alias (typ, aliasTxt) ->
235235
Doc.concat [
236+
Doc.lparen;
236237
printOutTypeDoc typ;
237238
Doc.text " as '";
238-
Doc.text aliasTxt
239+
Doc.text aliasTxt;
240+
Doc.rparen
239241
]
240242
| Otyp_constr (
241243
Oide_dot (Oide_dot (Oide_ident "Js", "Fn") , "arity0"), (* Js.Fn.arity0 *)

0 commit comments

Comments
 (0)