show all mismatching overloads again
This commit is contained in:
parent
a60cf221e8
commit
7bb93c730e
1 changed files with 11 additions and 9 deletions
|
|
@ -166,6 +166,7 @@ proc presentFailedCandidates(c: PContext, n: PNode, errors: CandidateErrors):
|
|||
prefer = preferModuleInfo
|
||||
break
|
||||
|
||||
when false:
|
||||
# we pretend procs are attached to the type of the first
|
||||
# argument in order to remove plenty of candidates. This is
|
||||
# comparable to what C# does and C# is doing fine.
|
||||
|
|
@ -177,6 +178,7 @@ proc presentFailedCandidates(c: PContext, n: PNode, errors: CandidateErrors):
|
|||
|
||||
var candidates = ""
|
||||
for err in errors:
|
||||
when false:
|
||||
if filterOnlyFirst and err.firstMismatch == 1: continue
|
||||
if err.sym.kind in routineKinds and err.sym.ast != nil:
|
||||
add(candidates, renderTree(err.sym.ast,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue