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
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 candidate = initIdentIter(ti, c.importTable.symbols, s.name)
var i = 0 var i = 0
while candidate != nil: while candidate != nil:
if i == 0: err.add " --use " if i == 0: err.add " -- use "
else: err.add " or " else: err.add " or "
err.add candidate.owner.name.s & "." & candidate.name.s err.add candidate.owner.name.s & "." & candidate.name.s
candidate = nextIdentIter(ti, c.importTable.symbols) candidate = nextIdentIter(ti, c.importTable.symbols)

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: "ambiguous identifier: 'range' --use system.range or mrange.range" errormsg: "ambiguous identifier: 'range' -- use system.range or mrange.range"
line: 13 line: 13
""" """