Merge pull request #51671 from RandomShaper/fix_gdscript_crash

Fix some GDScript bugs
This commit is contained in:
George Marques 2021-09-17 12:29:40 -03:00 committed by GitHub
commit b8fdeb6467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 15 deletions

View file

@ -161,6 +161,10 @@ public:
container_element_type = nullptr;
}
bool is_typed_container_type() const;
GDScriptParser::DataType get_typed_container_type() const;
bool operator==(const DataType &p_other) const {
if (type_source == UNDETECTED || p_other.type_source == UNDETECTED) {
return true; // Can be consireded equal for parsing purposes.