Files
Nim/tests/operator/tprecedence.nim
2014-01-13 02:10:03 +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