summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-12-12 11:05:18 +0100
committerGitHub <noreply@github.com>2019-12-12 11:05:18 +0100
commit22b2684608605ae74ca3f41c30c58c189a4cf569 (patch)
tree6943073814796d32fbfd9435cc727700bc0e47eb
parent94289161f9dd00b2fc3070b08895a3b6c557ef44 (diff)
downloadNim-22b2684608605ae74ca3f41c30c58c189a4cf569.tar.gz
fixes #12148 [backport] (#12888)
-rw-r--r--compiler/semcall.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index 13b357023..7124d9240 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -293,7 +293,7 @@ proc getMsgDiagnostic(c: PContext, flags: TExprFlags, n, f: PNode): string =
         assert result.startsWith "sk"
         result = result[2..^1].toLowerAscii
       result &= "\n  found '$1' of kind '$2'" % [getSymRepr(c.config, sym), sym.kind.toHumanStr]
-      sym = nextOverloadIter(o, c, n)
+      sym = nextOverloadIter(o, c, f)
 
   let ident = considerQuotedIdent(c, f, n).s
   if nfDotField in n.flags and nfExplicitCall notin n.flags: