diff options
author | George Marques <george@gmarqu.es> | 2018-09-13 10:56:22 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2018-09-19 11:17:46 -0300 |
commit | 02acb07d81e598c7b2689a77d8a8ac0ee64c2714 (patch) | |
tree | 7f4feea26e530e1b49e9eb2cd6eb1420b3b5089e | |
parent | 726e836cd9b6eee5e060b694e076535ad5b5a7ae (diff) |
GDScript: Fix autocompletion inference after `is` check
Fix #21915
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 2ad6b42223..a9b641de50 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1189,6 +1189,7 @@ static bool _guess_identifier_type(const GDScriptCompletionContext &p_context, c c.line = op->line; c.block = blk; if (_guess_expression_type(p_context, op->arguments[1], r_type)) { + r_type.type.is_meta_type = false; return true; } } |