summary refs log tree commit diff stats
path: root/tests/importalls/mt4b.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-16 00:16:39 -0700
committerGitHub <noreply@github.com>2021-04-16 09:16:39 +0200
commit8161b02897a75c4b30593dbcc189cbd49d3832ea (patch)
tree399ca0d086a7e6917fae6c47c8dd899bd80f9102 /tests/importalls/mt4b.nim
parent12783dbcf0075492a3d090e4dc3ead3628c18a3a (diff)
downloadNim-8161b02897a75c4b30593dbcc189cbd49d3832ea.tar.gz
`import foo {.all.}` reboot (#17706)
Diffstat (limited to 'tests/importalls/mt4b.nim')
-rw-r--r--tests/importalls/mt4b.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/importalls/mt4b.nim b/tests/importalls/mt4b.nim
new file mode 100644
index 000000000..4578bc54c
--- /dev/null
+++ b/tests/importalls/mt4b.nim
@@ -0,0 +1,3 @@
+from ./m1 {.all.} as m2 import nil
+doAssert not compiles(foo1)
+doAssert m2.foo1 == 2