Skip to content

Commit f999aa4

Browse files
committed
Handle functor with no arg
1 parent 4508576 commit f999aa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/syntax/src/res_printer.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,10 @@ and print_mod_type ~state mod_type cmt_tbl =
807807
Doc.concat [attrs; print_mod_type ~state mod_type cmt_tbl]
808808
in
809809
print_comments doc cmt_tbl cmt_loc
810+
| [(attrs, {Location.txt = "*"; loc}, None)] ->
811+
let attrs = print_attributes ~state attrs cmt_tbl in
812+
let doc = Doc.concat [attrs; Doc.text "()"] in
813+
print_comments doc cmt_tbl loc
810814
| params ->
811815
Doc.group
812816
(Doc.concat

0 commit comments

Comments
 (0)