summary refs log tree commit diff stats
path: root/tests/modules/tambig_range.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-12-15 12:16:03 +0100
committerAraq <rumpf_a@web.de>2017-12-15 12:16:03 +0100
commit8db5b32ff73fd01f5fabe50703f3a2f6206275fa (patch)
tree8ab05597a4cd85d49e26a6beaf23ef1963192e4d /tests/modules/tambig_range.nim
parent950dadbc71303b74fe18cf434a0a9da0201b0f04 (diff)
downloadNim-8db5b32ff73fd01f5fabe50703f3a2f6206275fa.tar.gz
make type vs proc ambiguous handling more consistent; fixes #6726; fixes #6693
Diffstat (limited to 'tests/modules/tambig_range.nim')
-rw-r--r--tests/modules/tambig_range.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/modules/tambig_range.nim b/tests/modules/tambig_range.nim
new file mode 100644
index 000000000..48e0e9f52
--- /dev/null
+++ b/tests/modules/tambig_range.nim
@@ -0,0 +1,9 @@
+discard """
+  errormsg: "ambiguous identifier: 'range' --use system.range or mrange.range"
+  line: 9
+"""
+
+# bug #6726
+import mrange
+
+range()