Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler/syntax/src/res_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ and print_type_declaration2 ?inline_record_definitions ~state ~rec_flag
Doc.space;
Doc.text equal_sign;
Doc.space;
print_private_flag td.ptype_private;
Doc.lbrace;
print_comments_inside cmt_tbl td.ptype_loc;
Doc.rbrace;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type t1 = private {}

type t2 = private {x: int}

type t3 = private A | B
5 changes: 5 additions & 0 deletions tests/syntax_tests/data/printer/typeDef/private.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type t1 = private {}

type t2 = private {x: int}

type t3 = private A | B