From 515ab81477c1c3e4811c4fbf43a3ff81b87be970 Mon Sep 17 00:00:00 2001 From: narimiran Date: Fri, 3 May 2019 11:33:29 +0200 Subject: [PATCH] add whitespace on the right-hand side of `--` This is an em-dash, not some `--use` flag. --- compiler/lookups.nim | 2 +- tests/modules/tambig_range.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 """