1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #99150 from dalexeev/gds-fix-callable-call-errror-text

GDScript: Fix `Callable` call error text
This commit is contained in:
Thaddeus Crews
2025-06-09 12:31:39 -05:00
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