er... 'a not b' is an infix call

This commit is contained in:
Andreas Rumpf
2018-11-08 09:39:27 +01:00
parent 5845716df8
commit 3cf3c2d722

View File

@@ -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