summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-05 21:10:24 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-05 21:10:24 +0200
commit67627355accff4af4f2a7e727c77ea8df675636e (patch)
treee35cc314c741960ae71ce3e6361cb6bb7c2182b0 /src/evalfunc.c
parentad7c24932725b9ab37b65fe359a41f8ba3e3dfcf (diff)
patch 8.2.1144: Vim9: return type of reverse() is anyv8.2.1144
Problem: Vim9: return type of reverse() is any. Solution: Use the type of the first argument.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 83b878b37c..0a100748d9 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -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