Files
Nim/tests/parser/tprecedence.nim
2014-01-22 17:32:38 +01:00

12 lines
178 B
Nim

discard """
output: "true"
"""
# Test the new predence rules
proc `\+` (x, y: int): int = result = x + y
proc `\*` (x, y: int): int = result = x * y
echo 5 \+ 1 \* 9 == 14