Skip to content

Commit a41eddd

Browse files
committed
Original example.
1 parent 8a2753e commit a41eddd

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

res_syntax/tests/printer/comments/array.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ let _ = (
88
a // zz
99
)[0]
1010

11+
(
12+
incidents
13+
->Belt.Array.keep(({status}) => status === #OPEN)
14+
// This comment will vanish
15+
->Belt.SortArray.stableSortBy((a, b) =>
16+
compare(a.createdTime, b.createdTime)
17+
)
18+
)[0]

res_syntax/tests/printer/comments/expected/array.res.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ a[/* zz */ 0] = 7
33
let _ = /* zz */ a[0]
44

55
let _ = a[0] // zz
6+
7+
(
8+
incidents
9+
->Belt.Array.keep(({status}) => status === #OPEN)
10+
// This comment will vanish
11+
->Belt.SortArray.stableSortBy((a, b) => compare(a.createdTime, b.createdTime))
12+
)[0]

0 commit comments

Comments
 (0)