Skip to content

Commit

Permalink
Merge pull request #90552 from vnen/gdscript-constructor-callable-rel…
Browse files Browse the repository at this point in the history
…ease

GDScript: Assume constructor to be accessible from class
  • Loading branch information
akien-mga committed Apr 29, 2024
2 parents d216a38 + e761982 commit 296758a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 296758a

Please sign in to comment.