summary refs log tree commit diff stats
path: root/tests/parser/tprecedence.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/tprecedence.nim')
-rw-r--r--tests/parser/tprecedence.nim5
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)