mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 18:03:35 +00:00
GDScript: Fix type name on error message for function parameters
This commit is contained in:
parent
1aef8bfeb1
commit
76678b2609
1 changed files with 1 additions and 1 deletions
|
|
@ -7872,7 +7872,7 @@ void GDScriptParser::_check_function_types(FunctionNode *p_function) {
|
|||
if (!_is_type_compatible(p_function->argument_types[i], def_type, true)) {
|
||||
String arg_name = p_function->arguments[i];
|
||||
_set_error("Value type (" + def_type.to_string() + ") doesn't match the type of argument '" +
|
||||
arg_name + "' (" + p_function->arguments[i] + ").",
|
||||
arg_name + "' (" + p_function->argument_types[i].to_string() + ").",
|
||||
p_function->line);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue