make all tests green again
properly disabling the extra diagnostics in semCompiles proved to be too much work. I have some plans for further improving the error messages in the future and I'll revisit this later.
This commit is contained in:
parent
a74ad869e9
commit
c11d7c35dd
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ proc semOverloadedCall(c: PContext, n, nOrig: PNode,
|
||||||
n.sons[1] = n.sons[1].sons[0]
|
n.sons[1] = n.sons[1].sons[0]
|
||||||
notFoundError(c, n, errors)
|
notFoundError(c, n, errors)
|
||||||
else:
|
else:
|
||||||
if efExplain notin flags and c.compilesContextId == 0:
|
if efExplain notin flags:
|
||||||
# repeat the overload resolution,
|
# repeat the overload resolution,
|
||||||
# this time enabling all the diagnostic output (this should fail again)
|
# this time enabling all the diagnostic output (this should fail again)
|
||||||
discard semOverloadedCall(c, n, nOrig, filter, flags + {efExplain})
|
discard semOverloadedCall(c, n, nOrig, filter, flags + {efExplain})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue