improve error message for twrongcolon
This commit is contained in:
parent
fa0f5d0238
commit
2199f83280
3 changed files with 15 additions and 4 deletions
|
|
@ -277,9 +277,9 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
|
|||
|
||||
if overloadsState == csEmpty and result.state == csEmpty:
|
||||
if nfDotField in n.flags and nfExplicitCall notin n.flags:
|
||||
localError(n.info, errUndeclaredField, considerQuotedIdent(f).s)
|
||||
localError(n.info, errUndeclaredField, considerQuotedIdent(f, n).s)
|
||||
else:
|
||||
localError(n.info, errUndeclaredRoutine, considerQuotedIdent(f).s)
|
||||
localError(n.info, errUndeclaredRoutine, considerQuotedIdent(f, n).s)
|
||||
return
|
||||
elif result.state != csMatch:
|
||||
if nfExprCall in n.flags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue