parser change: 'not' is always a unary operator; fixes #9574

This commit is contained in:
Andreas Rumpf 2018-11-07 20:53:41 +01:00
commit 8a357c270b
4 changed files with 11 additions and 1 deletions

View file

@ -19,3 +19,8 @@ proc foo[S, T](x: S, y: T): T = x & y
proc bar[T](x: T): T = x
echo "def".foo[:string, string]("abc"), " ", 4.bar[:int]
# bug #9574
proc isFalse(a: int): bool = false
assert not isFalse(3)