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

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

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;
}