Skip to content

Commit

Permalink
add test for nim-lang#8759
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Aug 12, 2022
1 parent 35414f9 commit d15c5da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/parser/tprecedence.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d15c5da

Please sign in to comment.