mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-10 05:38:10 +00:00
add whitespace on the right-hand side of --
This is an em-dash, not some `--use` flag.
This commit is contained in:
@@ -255,7 +255,7 @@ proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) =
|
||||
var candidate = initIdentIter(ti, c.importTable.symbols, s.name)
|
||||
var i = 0
|
||||
while candidate != nil:
|
||||
if i == 0: err.add " --use "
|
||||
if i == 0: err.add " -- use "
|
||||
else: err.add " or "
|
||||
err.add candidate.owner.name.s & "." & candidate.name.s
|
||||
candidate = nextIdentIter(ti, c.importTable.symbols)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errormsg: "ambiguous identifier: 'range' --use system.range or mrange.range"
|
||||
errormsg: "ambiguous identifier: 'range' -- use system.range or mrange.range"
|
||||
line: 13
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user