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

Commit 0f5f8dc

Browse files
committed
Add example of printing doc comments before attributes
#639
1 parent 882a499 commit 0f5f8dc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/printer/comments/docComments.res

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ let q = 11
1414
* is a multi-line
1515
multiline doc comment
1616
*/
17-
type h = int
17+
type h = int
18+
19+
/**
20+
doc comment and attributes
21+
*/
22+
@foo let x = 10

tests/printer/comments/expected/docComments.res.txt

+4
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ let q = 11
1515
multiline doc comment
1616
*/
1717
type h = int
18+
19+
/**
20+
external with doc comment
21+
*/ @foo let x = 10

0 commit comments

Comments
 (0)