replace deprecated safeAdd with add (#9416)

This commit is contained in:
Miran 2018-10-18 12:29:32 +02:00 • committed by Andreas Rumpf
commit 675c629fee
7 changed files with 12 additions and 12 deletions

View file

@ -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,