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:
commit
7c1abe8599
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue