Skip to content

Commit 6b99fab

Browse files
committed
Expand DocComments test
1 parent 7ca5517 commit 6b99fab

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

jscomp/syntax/tests/printer/expr/DocComments.res

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,18 @@ module M : {
1111

1212
@val
1313
external ex : (/** ddd */ ~x: int, /** eee */ n) => int = "ex"
14+
15+
/** A */
16+
module rec A : { type t } = {
17+
type t
18+
}
19+
20+
/** B */
21+
and B : { type t } = {
22+
type t
23+
}
24+
25+
@res.doc(" C ")
26+
and C : { type t} = {
27+
type t
28+
}

jscomp/syntax/tests/printer/expr/expected/DocComments.res.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,24 @@ module M: {
1111

1212
@val
1313
external ex: (/** ddd */ ~x: int, /** eee */ n) => int = "ex"
14+
15+
/** A */
16+
module rec A: {
17+
type t
18+
} = {
19+
type t
20+
}
21+
22+
/** B */
23+
and B: {
24+
type t
25+
} = {
26+
type t
27+
}
28+
29+
/** C */
30+
and C: {
31+
type t
32+
} = {
33+
type t
34+
}

0 commit comments

Comments
 (0)