GDScript: Fix range regression

This commit is contained in:
Dmitrii Maganov
2023-02-24 00:01:27 +02:00
parent e930c8d383
commit 55c5774be9
3 changed files with 32 additions and 12 deletions

View File

@@ -0,0 +1,7 @@
func test():
var array := [3, 6, 9]
var result := ''
for i in range(array.size(), 0, -1):
result += str(array[i - 1])
assert(result == '963')
print('ok')

View File

@@ -0,0 +1,2 @@
GDTEST_OK
ok