fixes a small bug concerning semicolons for top level statements

This commit is contained in:
Araq 2014-12-23 23:08:37 +01:00
commit 59e279ba9c
2 changed files with 10 additions and 4 deletions

View file

@ -1,11 +1,15 @@
discard """
output: "true"
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 == 14
echo 5 \+ 1 \* 9 == 6*9