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.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/parser/tprecedence.nim b/tests/parser/tprecedence.nim
index 66a2922db..9be79543b 100644
--- a/tests/parser/tprecedence.nim
+++ b/tests/parser/tprecedence.nim
@@ -54,3 +54,10 @@ let
 const
   test =
     proc(): int = 1
+
+# bug #8759
+block:
+  template `=>`(a, b): untyped = (a, b)
+  template `+=`(a, b): untyped = a * b
+
+  doAssert ("abc" => 3 += 5) == ("abc", 15)