add whitespace on the right-hand side of --

This is an em-dash, not some `--use` flag.
This commit is contained in:
narimiran
2019-05-03 11:33:29 +02:00
parent 9ad96b58e6
commit 515ab81477
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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
"""