Skip to content

Commit

Permalink
GDScript: Fix unresolved datatype for incomplete binary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexeev committed Oct 4, 2023
1 parent f5696c3 commit 2c5636c
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 @@ -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;
}

Expand Down

0 comments on commit 2c5636c

Please sign in to comment.