godot/modules/gdscript/tests/scripts/runtime/features/free_is_callable.gd

11 lines
178 B
GDScript

func test():
var node := Node.new()
var callable: Callable = node.free
callable.call()
print(node)
node = Node.new()
callable = node["free"]
callable.call()
print(node)