make tests green again

This commit is contained in:
Araq 2017-12-01 10:18:49 +01:00
commit 96b7c2481c
2 changed files with 42 additions and 40 deletions

View file

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