slices are first class citizens

This commit is contained in:
Araq
2011-04-22 10:53:43 +02:00
parent 1985ac6995
commit 8dda362fa6
12 changed files with 177 additions and 127 deletions

View File

@@ -0,0 +1,16 @@
# Test if the new table constructor syntax works:
template ignoreExpr(e: expr): stmt =
nil
# test first class '..' syntactical citizen:
ignoreExpr x <> 2..4
# test table constructor:
ignoreExpr({:})
ignoreExpr({2: 3, "key": "value"})
# NEW:
assert 56 in 50..100
assert 56 in ..60