summary refs log tree commit diff stats
path: root/tests/modules/mmodule_same_proc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/mmodule_same_proc.nim')
-rw-r--r--tests/modules/mmodule_same_proc.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/modules/mmodule_same_proc.nim b/tests/modules/mmodule_same_proc.nim
new file mode 100644
index 000000000..5ce56ec11
--- /dev/null
+++ b/tests/modules/mmodule_same_proc.nim
@@ -0,0 +1,6 @@
+
+# the module being the same name as the proc
+# is a requirement to trigger the error
+import mmodule_same_proc_client
+
+proc bar*[T](foo: T): bool = foo.mmodule_same_proc_client()