summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-25 19:26:38 +0100
committerGitHub <noreply@github.com>2019-03-25 19:26:38 +0100
commit8e1c6e2e2d2f1a0835ecc37631cd2129c8df57c0 (patch)
tree30bd605b1254b8935a9f8f1d358a9bd690ed4e82 /tests/parser
parent663b1f2c9665809f914e618ceaecaf4088d957f9 (diff)
downloadNim-8e1c6e2e2d2f1a0835ecc37631cd2129c8df57c0.tar.gz
fixes #10896 (#10903)
Diffstat (limited to 'tests/parser')
-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 3e1c03dd1..66a2922db 100644
--- a/tests/parser/tprecedence.nim
+++ b/tests/parser/tprecedence.nim
@@ -49,3 +49,8 @@ let
   aaa = t 2 + 4
   ccc = t (1, 1) + 6
   ddd = t [0, 1, 2] + 5
+
+# bug #10896
+const
+  test =
+    proc(): int = 1