Fixes #710.
This commit is contained in:
parent
e0fcfe58a2
commit
d10cef11dc
2 changed files with 12 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ proc notFoundError*(c: PContext, n: PNode, errors: seq[string]) =
|
|||
if c.inCompilesContext > 0:
|
||||
# fail fast:
|
||||
globalError(n.info, errTypeMismatch, "")
|
||||
if errors.len == 0:
|
||||
localError(n.info, errExprXCannotBeCalled, n[0].renderTree)
|
||||
var result = msgKindToString(errTypeMismatch)
|
||||
add(result, describeArgs(c, n, 1))
|
||||
add(result, ')')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue