0
0
mirror of https://github.com/vim/vim.git synced 2025-10-16 07:24:23 -04:00

patch 8.2.1447: Vim9: return type of keys() is list<any>

Problem:    Vim9: return type of keys() is list<any>.
Solution:   Should be list<string>. (closes #6711)
This commit is contained in:
Bram Moolenaar
2020-08-14 18:56:45 +02:00
parent 7517ffdbb5
commit 32f335f75c
3 changed files with 8 additions and 1 deletions

View File

@@ -715,7 +715,7 @@ static funcentry_T global_functions[] =
{"js_encode", 1, 1, FEARG_1, ret_string, f_js_encode},
{"json_decode", 1, 1, FEARG_1, ret_any, f_json_decode},
{"json_encode", 1, 1, FEARG_1, ret_string, f_json_encode},
{"keys", 1, 1, FEARG_1, ret_list_any, f_keys},
{"keys", 1, 1, FEARG_1, ret_list_string, f_keys},
{"last_buffer_nr", 0, 0, 0, ret_number, f_last_buffer_nr}, // obsolete
{"len", 1, 1, FEARG_1, ret_number, f_len},
{"libcall", 3, 3, FEARG_3, ret_string, f_libcall},