summary refs log tree commit diff stats
path: root/compiler/semcall.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r--compiler/semcall.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index a77fcad97..a51b9afe3 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -238,7 +238,6 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
 
       # leave the op head symbol empty,
       # we are going to try multiple variants
-      errors = nil
       n.sons[0..1] = [nil, n[1], f]
       orig.sons[0..1] = [nil, orig[1], f]
 
@@ -255,7 +254,6 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
         tryOp "."
 
     elif nfDotSetter in n.flags and f.kind == nkIdent and n.len == 3:
-      errors = nil
       # we need to strip away the trailing '=' here:
       let calleeName = newIdentNode(getIdent(f.ident.s[0..f.ident.s.len-2]), n.info)
       let callOp = newIdentNode(getIdent".=", n.info)