summary refs log tree commit diff stats
path: root/tests/misc/tsamename.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tsamename.nim')
-rw-r--r--tests/misc/tsamename.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/misc/tsamename.nim b/tests/misc/tsamename.nim
new file mode 100644
index 000000000..b2d17a506
--- /dev/null
+++ b/tests/misc/tsamename.nim
@@ -0,0 +1,15 @@
+# bug #9891
+
+import "."/tsamename2
+
+# this works
+callFun(fooBar2)
+
+when true:
+  # Error: attempting to call routine: 'processPattern'
+  callFun(fooBar)
+
+when true:
+  # BUG: Error: internal error: expr(skModule); unknown symbol
+  proc processPattern() = discard
+  callFun(fooBar)