Fix infinite recursion when guessing type of variable which is being assigned to
This commit is contained in:
parent
41fdddb1f8
commit
bd518f6b11
1 changed files with 1 additions and 1 deletions
|
@ -1891,7 +1891,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