Skip to content

Commit 296758a

Browse files
committed
Merge pull request #90552 from vnen/gdscript-constructor-callable-release
GDScript: Assume constructor to be accessible from class
2 parents d216a38 + e761982 commit 296758a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gdscript/gdscript_analyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3788,7 +3788,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
37883788
} break;
37893789

37903790
case GDScriptParser::ClassNode::Member::FUNCTION: {
3791-
if (is_base && (!base.is_meta_type || member.function->is_static)) {
3791+
if (is_base && (!base.is_meta_type || member.function->is_static || is_constructor)) {
37923792
p_identifier->set_datatype(make_callable_type(member.function->info));
37933793
p_identifier->source = GDScriptParser::IdentifierNode::MEMBER_FUNCTION;
37943794
return;

0 commit comments

Comments
 (0)