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 + } +}