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.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index d6852859b..2dd115b1b 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)