Skip to content

Commit

Permalink
Merge pull request #84492 from HolonProduction/reduce-const-arrays
Browse files Browse the repository at this point in the history
Autocompletion: Mark datatype as constant for constant arrays
  • Loading branch information
akien-mga committed May 7, 2024
2 parents ed0dbc3 + 6df1a1e commit d83586f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gdscript/gdscript_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,7 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
if (full) {
// If not fully constant, setting this value is detrimental to the inference.
r_type.value = a;
r_type.type.is_constant = true;
}
r_type.type.type_source = GDScriptParser::DataType::ANNOTATED_EXPLICIT;
r_type.type.kind = GDScriptParser::DataType::BUILTIN;
Expand Down

0 comments on commit d83586f

Please sign in to comment.