1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Merge pull request #108944 from vnen/gdscript-fix-static-call-fail-when-shadowing

Properly detect native class on static call optimization
This commit is contained in:
Thaddeus Crews
2025-07-25 11:08:14 -05:00
4 changed files with 8 additions and 2 deletions

View File

@@ -2287,6 +2287,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context,
case GDScriptParser::IdentifierNode::MEMBER_CLASS:
case GDScriptParser::IdentifierNode::INHERITED_VARIABLE:
case GDScriptParser::IdentifierNode::STATIC_VARIABLE:
case GDScriptParser::IdentifierNode::NATIVE_CLASS:
can_be_local = false;
break;
default: