Skip to content

Commit

Permalink
GDScript: Fix resolution of default parameter values
Browse files Browse the repository at this point in the history
Fix #26556
  • Loading branch information
vnen committed Jan 9, 2020
1 parent a0ce88f commit 1aef8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7867,7 +7867,7 @@ void GDScriptParser::_check_function_types(FunctionNode *p_function) {
def_type.is_constant = false;
p_function->argument_types.write[i] = def_type;
} else {
p_function->return_type = _resolve_type(p_function->return_type, p_function->line);
p_function->argument_types.write[i] = _resolve_type(p_function->argument_types[i], p_function->line);

if (!_is_type_compatible(p_function->argument_types[i], def_type, true)) {
String arg_name = p_function->arguments[i];
Expand Down

0 comments on commit 1aef8bf

Please sign in to comment.