Additional arguments bound in a connect
call that do not match the expected type on the receiving function fail silently
#53680
Labels
Godot version
3.3.2.stable.official
System information
Windows 10
Issue description
If additional arguments bound to a
connect
call do not match the expected type on the receiving function, they will be passed asnull
with no other error or runtime warning. I would expect at least an error to be reported in this case, similar to how errors are reported when the number of arguments on the function do no match the number provided at run time.Steps to reproduce
See below code from the provided sample that reproduces the issue. Run the project, and press the button - 'Invalid get index 'some_data' (on base :'Nil').' will be reported as object is passed is as null - but I'd argue what should happen here is the signal handling function should not be called, an an error reported instead.
Minimal reproduction project
TestConnectWrongType.zip
The text was updated successfully, but these errors were encountered: