GDScript: Fix unresolved datatype for incomplete binary operator

This commit is contained in:
Danil Alexeev 2023-10-04 17:07:37 +03:00
parent f5696c311c
commit 2c5636c135
No known key found for this signature in database
GPG Key ID: 124453E157DA8DC7

View File

@ -2800,6 +2800,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;
}