mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
16 lines
257 B
Nim
16 lines
257 B
Nim
discard """
|
|
output: '''holla
|
|
true'''
|
|
"""
|
|
|
|
# Test top level semicolon works properly:
|
|
import os; echo "holla"
|
|
|
|
# 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 == 6*9
|
|
|