GDScript: Allow subscript on self and object types

This commit is contained in:
George Marques 2021-10-06 12:01:34 -03:00
parent 18c912c332
commit 1f55bd190c
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,8 @@
# https://github.com/godotengine/godot/issues/43221
extends Node
func test():
name = "Node"
print(self["name"])
self["name"] = "Changed"
print(name)