summary refs log tree commit diff stats
path: root/tests/accept/compile/ttableconstr.nim
blob: 9433e9985b68009a0a1bbe7892b9ffe91cecca5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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