Merge pull request #53843 from vnen/gdscript-typed-array-subscript-constant

Fix inferred typed array marked as constant
This commit is contained in:
Rémi Verschelde 2021-10-15 16:49:29 +02:00 committed by GitHub
commit 3f888966c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# https://github.com/godotengine/godot/issues/53640
func test():
var arr := [0]
arr[0] = 1
print(arr[0])