GDScript: Allow subscript on self and object types
This commit is contained in:
parent
18c912c332
commit
1f55bd190c
3 changed files with 16 additions and 1 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue