From 8a357c270b32d41c2a721dc88197f0a8e35c47e8 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 7 Nov 2018 20:53:41 +0100 Subject: parser change: 'not' is always a unary operator; fixes #9574 --- tests/parser/tprecedence.nim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/parser') 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) -- cgit 1.4.1-2-gfad0