From b5d902bd629386ed6e5eff9aba5b8397d5641177 Mon Sep 17 00:00:00 2001 From: mununki Date: Wed, 11 Oct 2023 01:22:17 +0900 Subject: [PATCH] add more tests --- jscomp/test/Import.res | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/jscomp/test/Import.res b/jscomp/test/Import.res index 92bed428b5f..5b8097bf64c 100644 --- a/jscomp/test/Import.res +++ b/jscomp/test/Import.res @@ -69,4 +69,24 @@ let f5 = async () => { module A = await Belt.Array module O = await Belt.Option (A.forEach, O.forEach) -} \ No newline at end of file +} + +let f6 = async () => { + let a = 0 + and b = { + module MS = await Belt.Map.String + MS.forEach + } + module A = await Belt.Array + (a, b, A.forEach) +} + +let f7 = async () => { + if true { + module MI = await Belt.Map.Int + 1 + } else { + module MI = await Belt.Map.Dict + 0 + } +}