summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-05-04 17:47:37 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-05-07 09:37:49 +0200
commitcf13c5fba48e757531b3f9cb0e3aeae7710c849c (patch)
tree37c2ab529a4dfe808f6fd0118a5f7a51d51ad4ee /tests/modules
parent72976139009b9ae74669dc2443474f091c99f2e4 (diff)
downloadNim-cf13c5fba48e757531b3f9cb0e3aeae7710c849c.tar.gz
implement the export/except statement
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/definitions.nim4
-rw-r--r--tests/modules/proxy_module.nim3
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/modules/definitions.nim b/tests/modules/definitions.nim
new file mode 100644
index 000000000..edc6eaa6d
--- /dev/null
+++ b/tests/modules/definitions.nim
@@ -0,0 +1,4 @@
+var v*: int
+proc p* = echo "proc p called"
+template t* = echo "template t expanded"
+
diff --git a/tests/modules/proxy_module.nim b/tests/modules/proxy_module.nim
new file mode 100644
index 000000000..c244688cd
--- /dev/null
+++ b/tests/modules/proxy_module.nim
@@ -0,0 +1,3 @@
+import definitions
+export definitions except p
+