diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-03-14 16:00:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 16:00:02 +0100 |
commit | fc7adaab7b3856a7831d402ea2bbb27efe7b7d8a (patch) | |
tree | 23902b836784f4c823d69f200b6aa2c1cffbc9f6 /modules/gdscript/gdscript_editor.cpp | |
parent | 258ea41ffa00a71bbb6ba9844840f18ba5802816 (diff) | |
parent | 38c0ad7c6c6b70f1ecac0a7962a60c3105b3d8e8 (diff) |
Merge pull request #74907 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.1) - 3rd batch
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 63dfd4d27c..536cb344f4 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1956,7 +1956,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context, GDScriptParser::CompletionContext c = p_context; c.current_line = type_test->operand->start_line; c.current_suite = suite; - if ((!id_type.is_set() || id_type.is_variant()) && type_test->test_datatype.is_hard_type()) { + if (type_test->test_datatype.is_hard_type()) { id_type = type_test->test_datatype; if (last_assign_line < c.current_line) { // Override last assignment. |