replace deprecated safeAdd with add (#9416)
This commit is contained in:
parent
7d8e281239
commit
675c629fee
7 changed files with 12 additions and 12 deletions
|
|
@ -105,7 +105,7 @@ proc pickBestCandidate(c: PContext, headSymbol: PNode,
|
|||
if cmp < 0: best = z # x is better than the best so far
|
||||
elif cmp == 0: alt = z # x is as good as the best so far
|
||||
elif errorsEnabled or z.diagnosticsEnabled:
|
||||
errors.safeAdd(CandidateError(
|
||||
errors.add(CandidateError(
|
||||
sym: sym,
|
||||
unmatchedVarParam: int z.mutabilityProblem,
|
||||
firstMismatch: z.firstMismatch,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue