fixes #12148 [backport] (#12888)

(cherry picked from commit 22b2684608)
This commit is contained in:
Andreas Rumpf
2019-12-12 11:05:18 +01:00
committed by narimiran
parent d807c4b7c0
commit f52395f2d8

View File

@@ -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: