Merge pull request #62690 from cdemirer/fix-infinite-guess-recursion
This commit is contained in:
commit
4c56885bc0
1 changed files with 1 additions and 1 deletions
|
@ -1903,7 +1903,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context,
|
|||
suite = suite->parent_block;
|
||||
}
|
||||
|
||||
if (last_assigned_expression && last_assign_line != p_context.current_line) {
|
||||
if (last_assigned_expression && last_assign_line < p_context.current_line) {
|
||||
GDScriptParser::CompletionContext c = p_context;
|
||||
c.current_line = last_assign_line;
|
||||
r_type.assigned_expression = last_assigned_expression;
|
||||
|
|
Loading…
Reference in a new issue