diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-05 16:07:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-05 16:07:21 +0200 |
commit | fce82b3aa7dd87f9e15a4c12eda2c65de285d99a (patch) | |
tree | 7e014774cc045782b0fa7e0ff6b225d7b62826a7 /src/evalfunc.c | |
parent | 9978d473e32cee928d6f901a5eb9a297a2970132 (diff) | |
download | vim-git-fce82b3aa7dd87f9e15a4c12eda2c65de285d99a.tar.gz |
patch 8.2.1133: Vim9: return type of add() is not specific enoughv8.2.1133
Problem: Vim9: return type of add() is not specific enough.
Solution: Return the type of the first argument. (closes #6395)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 2cdf186be..c3eaef2ea 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -441,7 +441,7 @@ static funcentry_T global_functions[] = { {"abs", 1, 1, FEARG_1, ret_any, FLOAT_FUNC(f_abs)}, {"acos", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_acos)}, - {"add", 2, 2, FEARG_1, ret_any, f_add}, + {"add", 2, 2, FEARG_1, ret_first_arg, f_add}, {"and", 2, 2, FEARG_1, ret_number, f_and}, {"append", 2, 2, FEARG_LAST, ret_number, f_append}, {"appendbufline", 3, 3, FEARG_LAST, ret_number, f_appendbufline}, |