improve compiler error message

This commit is contained in:
Araq
2018-04-06 14:00:09 +02:00
parent 19ed4a8e3e
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: