diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-05 18:41:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-05 18:41:08 +0200 |
commit | a66ba01a5fbbd72375ef6982b901d6552da2414f (patch) | |
tree | e2f33ed64283d495bf2f02e1d7a2ffc0fbd3d1d2 /src/evalfunc.c | |
parent | 47e7d70b58e8bfc1daaf6d35569ef2dbd0339ddc (diff) |
patch 8.2.1138: Vim9: return type of copy() and deepcopy() is anyv8.2.1138
Problem: Vim9: return type of copy() and deepcopy() is any.
Solution: Use type of the argument.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 5215befb5a..57e707fc36 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -544,7 +544,7 @@ static funcentry_T global_functions[] = {"complete_check", 0, 0, 0, ret_number, f_complete_check}, {"complete_info", 0, 1, FEARG_1, ret_dict_any, f_complete_info}, {"confirm", 1, 4, FEARG_1, ret_number, f_confirm}, - {"copy", 1, 1, FEARG_1, ret_any, f_copy}, + {"copy", 1, 1, FEARG_1, ret_first_arg, f_copy}, {"cos", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_cos)}, {"cosh", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_cosh)}, {"count", 2, 4, FEARG_1, ret_number, f_count}, @@ -557,7 +557,7 @@ static funcentry_T global_functions[] = NULL #endif }, - {"deepcopy", 1, 2, FEARG_1, ret_any, f_deepcopy}, + {"deepcopy", 1, 2, FEARG_1, ret_first_arg, f_deepcopy}, {"delete", 1, 2, FEARG_1, ret_number, f_delete}, {"deletebufline", 2, 3, FEARG_1, ret_number, f_deletebufline}, {"did_filetype", 0, 0, 0, ret_number, f_did_filetype}, |