diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-11-07 20:53:41 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-07 21:17:52 +0100 |
commit | 8a357c270b32d41c2a721dc88197f0a8e35c47e8 (patch) | |
tree | 6b1a47c49c804c064adc9a704f5c784bcfb4d7b3 /tests/parser | |
parent | b1ad5fd7da0d5b93b260ddd62f98f7331cc801fb (diff) | |
download | Nim-8a357c270b32d41c2a721dc88197f0a8e35c47e8.tar.gz |
parser change: 'not' is always a unary operator; fixes #9574
Diffstat (limited to 'tests/parser')
-rw-r--r-- | tests/parser/tprecedence.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/parser/tprecedence.nim b/tests/parser/tprecedence.nim index d586f14a3..cdf4ad3ee 100644 --- a/tests/parser/tprecedence.nim +++ b/tests/parser/tprecedence.nim @@ -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) |