summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorJulian Fondren <julian.fondren@gmail.com>2019-04-28 02:00:06 -0500
committerJulian Fondren <julian.fondren@gmail.com>2019-04-28 02:00:06 -0500
commitd8e0d6801bfda2f03c83f26f2a1d9901ff7485e4 (patch)
treea6f450a0806d1f76128c1caa417e444332547817 /compiler
parentd85de3cd57defdf51f031a368976c90b50f6b006 (diff)
downloadNim-d8e0d6801bfda2f03c83f26f2a1d9901ff7485e4.tar.gz
re-include ambiguous identifier in ambiguous identifier output
Diffstat (limited to 'compiler')
-rw-r--r--compiler/lookups.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index 51b453ca4..ddc3d7293 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -257,7 +257,8 @@ proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) =
   while candidate != nil:
     if i == 0: err.add " --use one of the following:\n"
     else: err.add "\n"
-    err.add candidate.owner.name.s & "." & typeToString(candidate.typ)
+    err.add candidate.owner.name.s & "." & candidate.name.s
+    err.add ": " & typeToString(candidate.typ)
     candidate = nextIdentIter(ti, c.importTable.symbols)
     inc i
   localError(c.config, info, errGenerated, err)