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
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)