mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
12 lines
178 B
Nim
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
|
|
|