mirror of
https://github.com/godotengine/godot.git
synced 2024-11-29 15:42:29 +00:00
GDScript: Fix unresolved datatype for incomplete binary operator
This commit is contained in:
parent
f5696c311c
commit
2c5636c135
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user