make type vs proc ambiguous handling more consistent; fixes #6726; fixes #6693

This commit is contained in:
Araq
2017-12-15 12:16:03 +01:00
parent 950dadbc71
commit 8db5b32ff7
5 changed files with 16 additions and 3 deletions

2
tests/modules/mrange.nim Normal file
View File

@@ -0,0 +1,2 @@
proc range*() = echo "yo"

View File

@@ -0,0 +1,9 @@
discard """
errormsg: "ambiguous identifier: 'range' --use system.range or mrange.range"
line: 9
"""
# bug #6726
import mrange
range()