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

Commit 91601eb

Browse files
committed
More tests of doc comments and attributes.
1 parent ffff692 commit 91601eb

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

tests/printer/comments/docComments.res

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,10 @@ type h = int
2020
@foo let x = 10
2121

2222
/** doc comment and attribute */
23-
@foo let x = 10
23+
@foo let x = 10
24+
25+
/** doc comment and 3 attributes */
26+
@foo @bar @baz let x = 10
27+
28+
/** doc comment and 0 attributes */
29+
let x = 10

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ type h = int
2222
/** doc comment and attribute */
2323
@foo
2424
let x = 10
25+
26+
/** doc comment and 3 attributes */
27+
@foo
28+
@bar
29+
@baz
30+
let x = 10
31+
32+
/** doc comment and 0 attributes */
33+
let x = 10

0 commit comments

Comments
 (0)