You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #90552 from vnen/gdscript-constructor-callable-release
GDScript: Assume constructor to be accessible from class
This commit is contained in:
@@ -3788,7 +3788,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
|
||||
} break;
|
||||
|
||||
case GDScriptParser::ClassNode::Member::FUNCTION: {
|
||||
if (is_base && (!base.is_meta_type || member.function->is_static)) {
|
||||
if (is_base && (!base.is_meta_type || member.function->is_static || is_constructor)) {
|
||||
p_identifier->set_datatype(make_callable_type(member.function->info));
|
||||
p_identifier->source = GDScriptParser::IdentifierNode::MEMBER_FUNCTION;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user