StringName comparsion missing Array.has(String)
and String in Array
#63965
Labels
Milestone
Array.has(String)
and String in Array
#63965
Godot version
v4.0.alpha.custom_build [8f05263]
System information
Linux
Issue description
When using groups, now defined as StringName. So many functionalities have stopped working when comparing
"value"
(String). This comes apparent when there are places whereString
has been replaced byStringName
, and there is no error that those aren't comparable. Also in the documentation, there is pointed out that those two (String, StringName) has compare operation.Because there is no error in a wrong way to compare it causes problems, example wrong way to compare is:
"some" in get_groups()
. This should raise an error if it's not comparable.For clarification, I don't need those to work! But I would love to get error when those don't work as expected.
Ex error:
Array[StringName].has(Variant) Variant has to be same type as Array data, was String expected StringName
Steps to reproduce
Node
as root.some
.Output:
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: