fixes constant array indexing bug

This commit is contained in:
Araq 2014-06-30 16:45:55 +02:00
commit 678f3d7f5b
12 changed files with 47 additions and 1523 deletions

View file

@ -1,6 +1,7 @@
discard """
output: '''7
8 8'''
8 8
-2'''
"""
#bug 1063
@ -21,3 +22,10 @@ type
internal: array[int((KeyMax + 31)/32), cuint]
echo myconst, " ", int((KeyMax + 31) / 32)
#bug 1304 or something:
const constArray: array [-3..2, int] = [-3, -2, -1, 0, 1, 2]
echo constArray[-2]