0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.2.1144: Vim9: return type of reverse() is any

Problem:    Vim9: return type of reverse() is any.
Solution:   Use the type of the first argument.
This commit is contained in:
Bram Moolenaar
2020-07-05 21:10:24 +02:00
parent ad7c249327
commit 67627355ac
3 changed files with 12 additions and 1 deletions

View File

@@ -842,7 +842,7 @@ static funcentry_T global_functions[] =
{"rename", 2, 2, FEARG_1, ret_number, f_rename},
{"repeat", 2, 2, FEARG_1, ret_first_arg, f_repeat},
{"resolve", 1, 1, FEARG_1, ret_string, f_resolve},
{"reverse", 1, 1, FEARG_1, ret_any, f_reverse},
{"reverse", 1, 1, FEARG_1, ret_first_arg, f_reverse},
{"round", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_round)},
{"rubyeval", 1, 1, FEARG_1, ret_any,
#ifdef FEAT_RUBY