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

GDScript: Add missing type conversions in for range

This commit is contained in:
Danil Alexeev
2025-06-11 20:45:47 +03:00
parent 51b0379e55
commit e2d4469dc2
4 changed files with 35 additions and 5 deletions

View File

@@ -234,6 +234,19 @@ public:
GDScriptDataType() = default;
bool operator==(const GDScriptDataType &p_other) const {
return kind == p_other.kind &&
has_type == p_other.has_type &&
builtin_type == p_other.builtin_type &&
native_type == p_other.native_type &&
(script_type == p_other.script_type || script_type_ref == p_other.script_type_ref) &&
container_element_types == p_other.container_element_types;
}
bool operator!=(const GDScriptDataType &p_other) const {
return !(*this == p_other);
}
void operator=(const GDScriptDataType &p_other) {
kind = p_other.kind;
has_type = p_other.has_type;