diff options
Diffstat (limited to 'tests/accept/run/toprprec.nim')
-rw-r--r-- | tests/accept/run/toprprec.nim | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/accept/run/toprprec.nim b/tests/accept/run/toprprec.nim deleted file mode 100644 index 4728b2e68..000000000 --- a/tests/accept/run/toprprec.nim +++ /dev/null @@ -1,12 +0,0 @@ -# Test operator precedence: - -assert 3+5*5-2 == 28- -26-28 - -proc `^-` (x, y: int): int = - # now right-associative! - result = x - y - -assert 34 ^- 6 ^- 2 == 30 -assert 34 - 6 - 2 == 26 -echo "done" - |