Skip to content

Commit 917e680

Browse files
committed
add more tricky tests
1 parent 42468e0 commit 917e680

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

res_syntax/tests/printer/expr/asyncAwait.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ let b1 = await (3+4)
113113
let b2 = await (3**4)
114114
let b3 = await (foo->bar(~arg))
115115
let b4 = await (foo.bar.baz)
116+
117+
let c1 = @foo x => @bar y => x + y
118+
let c2 = (. x) => y => x+y
119+
let c3 = (. x) => @foo y => x+y

res_syntax/tests/printer/expr/expected/asyncAwait.res.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,7 @@ let b1 = await (3 + 4)
135135
let b2 = await (3 ** 4)
136136
let b3 = await foo->bar(~arg)
137137
let b4 = await foo.bar.baz
138+
139+
let c1 = @foo x => @bar y => x + y
140+
let c2 = (. x, y) => x + y
141+
let c3 = (. x) => @foo y => x + y

0 commit comments

Comments
 (0)