summary refs log tree commit diff stats
path: root/tests/importalls/mt9.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/importalls/mt9.nim')
-rw-r--r--tests/importalls/mt9.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/importalls/mt9.nim b/tests/importalls/mt9.nim
new file mode 100644
index 000000000..42d48ecbd
--- /dev/null
+++ b/tests/importalls/mt9.nim
@@ -0,0 +1,12 @@
+# tests re-export of a module with import {.all.}
+
+import ./m4
+
+doAssert m3p1 == 2
+doAssert not declared(m3h2)
+doAssert m3h3 == 3
+doAssert m3h4 == 4
+
+doAssert bar1 == 2
+doAssert bar2 == 2
+doAssert not declared(bar3)