1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

GDScript: Allow utility functions to be used as Callable

This commit is contained in:
Danil Alexeev
2024-01-05 13:56:42 +03:00
parent 179dfdc8d7
commit b31acb0cd5
5 changed files with 219 additions and 20 deletions

View File

@@ -0,0 +1,10 @@
func test():
print(print)
print(len)
prints.callv([1, 2, 3])
print(mini.call(1, 2))
print(len.bind("abc").call())
const ABSF = absf
print(ABSF.call(-1.2))

View File

@@ -0,0 +1,7 @@
GDTEST_OK
@GlobalScope::print (Callable)
@GDScript::len (Callable)
1 2 3
1
3
1.2