You've already forked godot
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:
@@ -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))
|
||||
@@ -0,0 +1,7 @@
|
||||
GDTEST_OK
|
||||
@GlobalScope::print (Callable)
|
||||
@GDScript::len (Callable)
|
||||
1 2 3
|
||||
1
|
||||
3
|
||||
1.2
|
||||
Reference in New Issue
Block a user