This commit is contained in:
Araq 2015-03-05 22:03:26 +01:00
commit 4d8cd34c9e
3 changed files with 33 additions and 18 deletions

View file

@ -0,0 +1,10 @@
# bug #794
type TRange = range[0..3]
const str = "123456789"
for i in TRange.low .. TRange.high:
echo str[i] #This works fine
echo str[int(i) .. int(TRange.high)] #So does this
echo str[i .. TRange.high] #The compiler complains about this