From b5f1e88b2ed7be4c0ecc9edf3f5d9f6287b7c513 Mon Sep 17 00:00:00 2001 From: George Marques Date: Thu, 17 Jun 2021 20:00:28 -0300 Subject: GDScript: Fix setting type of operator return value Also write type adjust when needed for binary operators. --- modules/gdscript/gdscript_analyzer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript/gdscript_analyzer.cpp') diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index c3edc813d2..34310cf58d 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3446,6 +3446,7 @@ GDScriptParser::DataType GDScriptAnalyzer::get_operation_type(Variant::Operator } r_valid = true; + result.type_source = GDScriptParser::DataType::ANNOTATED_INFERRED; result.kind = GDScriptParser::DataType::BUILTIN; result.builtin_type = Variant::get_operator_return_type(p_operation, a_type, b_type); -- cgit v1.2.3