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

Commit e1a0a65

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

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/printer/comments/docComments.res

Lines changed: 6 additions & 1 deletion
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

Lines changed: 4 additions & 0 deletions
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)