diff --git a/compiler/semcall.nim b/compiler/semcall.nim index d6852859b9..2dd115b1bc 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -256,6 +256,7 @@ proc resolveOverloads(c: PContext, n, orig: PNode, f.ident.s[0..f.ident.s.len-2]).withInfo(n.info) let callOp = newIdentNode(getIdent".=", n.info) n.sons[0..1] = [callOp, n[1], calleeName] + excl(n.flags, nfDotSetter) orig.sons[0..1] = [callOp, orig[1], calleeName] pickBest(callOp)