summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-11-08 09:39:27 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-11-08 09:39:27 +0100
commit3cf3c2d722775ee3fc265e1c53733645277171e5 (patch)
tree3c5b69b35f68da5a62b758d3fdb0bcfc779b5dfe
parent5845716df8c96157a047c2bd6bcdd795a7a2b9b1 (diff)
downloadNim-3cf3c2d722775ee3fc265e1c53733645277171e5.tar.gz
er... 'a not b' is an infix call
-rw-r--r--compiler/parser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index dab10ae00..0b7eee32e 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -1260,7 +1260,7 @@ proc binaryNot(p: var TParser; a: PNode): PNode =
     getTok(p)
     optInd(p, notOpr)
     let b = parseExpr(p)
-    result = newNodeP(nkCommand, p)
+    result = newNodeP(nkInfix, p)
     result.add notOpr
     result.add a
     result.add b