parser change: 'not' is always a unary operator; fixes #9574
This commit is contained in:
parent
b1ad5fd7da
commit
8a357c270b
4 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue