fix tnoop

This commit requires further investigation.

Fixing semExpr(nkCall) once and for all to work with sym-choices and to
allow overloading with immediate templates and macros will probably set
this straight too.
This commit is contained in:
Zahary Karadjov 2013-08-26 23:43:39 +03:00
commit bdeaee4a33
4 changed files with 17 additions and 14 deletions

View file

@ -128,9 +128,14 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
pickBest(callOp)
if result.state == csEmpty:
errors = @[]
pickBest(f)
NotFoundError(c, n, errors)
if nfExprCall in n.flags:
if c.inCompilesContext > 0 or gErrorCounter == 0:
LocalError(n.info, errExprXCannotBeCalled,
renderTree(n, {renderNoComments}))
else:
errors = @[]
pickBest(f)
NotFoundError(c, n, errors)
return
if alt.state == csMatch and cmpCandidates(result, alt) == 0 and