mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
GDScript: Fix function signature check for self calls
This commit is contained in:
parent
313e1f62bb
commit
a23fc45727
3 changed files with 14 additions and 0 deletions
|
|
@ -2059,9 +2059,11 @@ void GDScriptAnalyzer::reduce_call(GDScriptParser::CallNode *p_call, bool is_awa
|
|||
|
||||
if (p_call->is_super) {
|
||||
base_type = parser->current_class->base_type;
|
||||
base_type.is_meta_type = false;
|
||||
is_self = true;
|
||||
} else if (callee_type == GDScriptParser::Node::IDENTIFIER) {
|
||||
base_type = parser->current_class->get_datatype();
|
||||
base_type.is_meta_type = false;
|
||||
is_self = true;
|
||||
} else if (callee_type == GDScriptParser::Node::SUBSCRIPT) {
|
||||
GDScriptParser::SubscriptNode *subscript = static_cast<GDScriptParser::SubscriptNode *>(p_call->callee);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue