mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 02:13:36 +00:00
GDScript: Fix return type of constructor call for extending class
This commit is contained in:
parent
b6e06038f8
commit
f67aa3e46d
3 changed files with 13 additions and 1 deletions
|
|
@ -4174,7 +4174,7 @@ bool GDScriptAnalyzer::get_function_signature(GDScriptParser::Node *p_source, bo
|
|||
r_default_arg_count++;
|
||||
}
|
||||
}
|
||||
r_return_type = found_function->get_datatype();
|
||||
r_return_type = p_is_constructor ? p_base_type : found_function->get_datatype();
|
||||
r_return_type.is_meta_type = false;
|
||||
r_return_type.is_coroutine = found_function->is_coroutine;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue