Skip to content

Commit

Permalink
Merge pull request #82789 from dalexeev/gds-fix-unresolved-type-for-i…
Browse files Browse the repository at this point in the history
…ncomplete-bin-op

GDScript: Fix unresolved datatype for incomplete binary operator
  • Loading branch information
akien-mga committed Oct 5, 2023
2 parents a05c800 + 2c5636c commit 7c1abe8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7c1abe8

Please sign in to comment.