diff --git a/compiler/parser.nim b/compiler/parser.nim index dab10ae00f..0b7eee32e4 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