summary refs log tree commit diff stats
path: root/tests/lookups/tambsym.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lookups/tambsym.nim')
-rw-r--r--tests/lookups/tambsym.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lookups/tambsym.nim b/tests/lookups/tambsym.nim
new file mode 100644
index 000000000..bd0f41717
--- /dev/null
+++ b/tests/lookups/tambsym.nim
@@ -0,0 +1,13 @@
+discard """
+  errormsg: "ambiguous identifier"
+  file: "tambsym.nim"
+  line: 11
+"""
+# Test ambiguous symbols
+
+import mambsym1, mambsym2
+
+var
+  v: TExport #ERROR_MSG ambiguous identifier
+
+v = y