summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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