improve compiler error message

This commit is contained in:
Araq 2018-04-06 14:00:09 +02:00
commit f9449ef954

View file

@ -302,7 +302,7 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
if nfDotField in n.flags and nfExplicitCall notin n.flags:
localError(n.info, errUndeclaredField, considerQuotedIdent(f, n).s)
else:
localError(n.info, errUndeclaredRoutine, considerQuotedIdent(f, n).s)
localError(n.info, errUndeclaredRoutine, $n) #considerQuotedIdent(f, n).s)
return
elif result.state != csMatch:
if nfExprCall in n.flags: