1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

GDScript: Fix Callable call error text

This commit is contained in:
Danil Alexeev
2025-05-02 18:22:49 +03:00
parent 1cf573f44d
commit 2b30f23595
7 changed files with 48 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
#debug-only
func test():
print(load.bind([]).call())

View File

@@ -0,0 +1,2 @@
GDTEST_RUNTIME_ERROR
>> SCRIPT ERROR at runtime/errors/callable_call_invalid_arg_type.gd:3 on test(): Invalid type in function '@GDScript::load (Callable)'. Cannot convert argument 1 from Array to String.

View File

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