diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-10-04 17:07:37 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-10-04 17:07:37 +0300 |
commit | 2c5636c135e4f5f43692353c71438a91d82faf14 (patch) | |
tree | 5c9b2df52beadc29a9db8eeff801bb9f1028aeee /modules/gdscript/gdscript_analyzer.cpp | |
parent | f5696c311cdb09e0a34fa4ba7ef5d2524c515b89 (diff) | |
download | redot-engine-2c5636c135e4f5f43692353c71438a91d82faf14.tar.gz |
GDScript: Fix unresolved datatype for incomplete binary operator
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 0d06597bc0..3f103b3134 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -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; } |