Browse Source

Fix symbol lookup in index subscript

HolonProduction 1 year ago
parent
commit
54742f7c60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/gdscript/gdscript_editor.cpp

+ 2 - 1
modules/gdscript/gdscript_editor.cpp

@@ -3561,7 +3561,8 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
 		case GDScriptParser::COMPLETION_ASSIGN:
 		case GDScriptParser::COMPLETION_CALL_ARGUMENTS:
 		case GDScriptParser::COMPLETION_IDENTIFIER:
-		case GDScriptParser::COMPLETION_PROPERTY_METHOD: {
+		case GDScriptParser::COMPLETION_PROPERTY_METHOD:
+		case GDScriptParser::COMPLETION_SUBSCRIPT: {
 			GDScriptParser::DataType base_type;
 			if (context.current_class) {
 				if (context.type != GDScriptParser::COMPLETION_SUPER_METHOD) {