Merge pull request #82789 from dalexeev/gds-fix-unresolved-type-for-incomplete-bin-op

GDScript: Fix unresolved datatype for incomplete binary operator
This commit is contained in:
Rémi Verschelde 2023-10-05 10:10:33 +02:00
commit 7c1abe8599
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2802,6 +2802,9 @@ void GDScriptAnalyzer::reduce_binary_op(GDScriptParser::BinaryOpNode *p_binary_o
}
if (!left_type.is_set() || !right_type.is_set()) {
GDScriptParser::DataType dummy;
dummy.kind = GDScriptParser::DataType::VARIANT;
p_binary_op->set_datatype(dummy);
return;
}