Skip to content

Commit 2519baf

Browse files
committed
add syntax test
1 parent 42bc390 commit 2519baf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

res_syntax/tests/parsing/grammar/expressions/await.res

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ let () = {
2323
let () = {
2424
await delay(10)
2525
await delay(20)
26-
}
26+
}
27+
28+
let forEach = await Js.Import(Belt.List.forEach)
29+
30+
module M = await Belt.List

res_syntax/tests/parsing/grammar/expressions/expected/await.res.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ let () =
1515
[@res.braces ])
1616
let () = ((delay 10)[@res.braces ][@res.await ])
1717
let () = ((((delay 10)[@res.await ]); ((delay 20)[@res.await ]))
18-
[@res.braces ])
18+
[@res.braces ])
19+
let forEach = ((Js.Import Belt.List.forEach)[@res.await ])
20+
module M = ((Belt.List)[@res.await ])

0 commit comments

Comments
 (0)