You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Providing an instance of a superseding class as an argument triggers this error.
For example, a version of Callable.new expects an Object, and will complain if it's given a Node instead of an primitive Object.
Steps to reproduce
enable the warning or error in the project settings (debug/gdscript/warnings/unsafe_call_argument)
The text was updated successfully, but these errors were encountered:
mieldepoche
changed the title
"unsafe call argument" GDScript warning shows up with safe call argument
"unsafe call argument" GDScript warning shows up with safe argument
Sep 29, 2023
Godot version
4.2.dev fbe611e
System information
linux
Issue description
Providing an instance of a superseding class as an argument triggers this error.
For example, a version of
Callable.new
expects anObject
, and will complain if it's given aNode
instead of an primitiveObject
.Steps to reproduce
enable the warning or error in the project settings (
debug/gdscript/warnings/unsafe_call_argument
)put this script in a file:
Minimal reproduction project
mrp_bad_gdscript_error.zip
The text was updated successfully, but these errors were encountered: