diff options
author | George Marques <george@gmarqu.es> | 2020-01-09 15:50:06 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-01-09 15:50:06 -0300 |
commit | 76678b2609921f27f52c1a2e2bd62b8d2a27bb4b (patch) | |
tree | 8533fa36443be8a84f73bdcc3dcfe3aa73c68330 | |
parent | 1aef8bfeb160f6c68804e33437fa2fad8e732202 (diff) |
GDScript: Fix type name on error message for function parameters
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 52a854e31f..4350a8042a 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -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); } } |