fixes a 'nim check' regression
This commit is contained in:
parent
de69e1856f
commit
313cc337f2
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ proc presentFailedCandidates(c: PContext, n: PNode, errors: CandidateErrors):
|
||||||
candidates.add typeToString(got)
|
candidates.add typeToString(got)
|
||||||
doAssert wanted != nil
|
doAssert wanted != nil
|
||||||
if got != nil: effectProblem(wanted, got, candidates)
|
if got != nil: effectProblem(wanted, got, candidates)
|
||||||
of kUnknown: internalAssert(c.config, false)
|
of kUnknown: discard "do not break 'nim check'"
|
||||||
candidates.add "\n"
|
candidates.add "\n"
|
||||||
for diag in err.diagnostics:
|
for diag in err.diagnostics:
|
||||||
candidates.add(diag & "\n")
|
candidates.add(diag & "\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue