diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 8bc2634854..a8908b1f65 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -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) diff --git a/tests/modules/tambig_range.nim b/tests/modules/tambig_range.nim index 0103505210..8fe488b599 100644 --- a/tests/modules/tambig_range.nim +++ b/tests/modules/tambig_range.nim @@ -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 """