summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-04-04 10:43:54 +0200
committerAraq <rumpf_a@web.de>2017-04-04 10:43:54 +0200
commite105c04e49bd42fdb4566a91105353eb3b218142 (patch)
tree89e663487faa8641b4fc895aed39105bb8efe93b
parentdd7ebb2c95a47745c12a9bb8274b2362f96afea1 (diff)
downloadNim-e105c04e49bd42fdb4566a91105353eb3b218142.tar.gz
revert PR #5638 because it breaks code
-rw-r--r--compiler/semcall.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index 2dd115b1b..5a756c974 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -155,7 +155,7 @@ proc presentFailedCandidates(c: PContext, n: PNode, errors: CandidateErrors):
                       renderTree(n[err.unmatchedVarParam]) & "' is immutable\n")
     for diag in err.diagnostics:
       add(candidates, diag & "\n")
-  
+
   result = (prefer, candidates)
 
 proc notFoundError*(c: PContext, n: PNode, errors: CandidateErrors) =
@@ -256,7 +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)
+      #excl(n.flags, nfDotSetter)
       orig.sons[0..1] = [callOp, orig[1], calleeName]
       pickBest(callOp)