fixes constant array indexing bug
This commit is contained in:
parent
33106884ec
commit
678f3d7f5b
12 changed files with 47 additions and 1523 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue