We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7517ffd commit 32f335fCopy full SHA for 32f335f
3 files changed
src/evalfunc.c
@@ -715,7 +715,7 @@ static funcentry_T global_functions[] =
715
{"js_encode", 1, 1, FEARG_1, ret_string, f_js_encode},
716
{"json_decode", 1, 1, FEARG_1, ret_any, f_json_decode},
717
{"json_encode", 1, 1, FEARG_1, ret_string, f_json_encode},
718
- {"keys", 1, 1, FEARG_1, ret_list_any, f_keys},
+ {"keys", 1, 1, FEARG_1, ret_list_string, f_keys},
719
{"last_buffer_nr", 0, 0, 0, ret_number, f_last_buffer_nr}, // obsolete
720
{"len", 1, 1, FEARG_1, ret_number, f_len},
721
{"libcall", 3, 3, FEARG_3, ret_string, f_libcall},
src/testdir/test_vim9_func.vim
@@ -1283,6 +1283,11 @@ def Test_insert_return_type()
1283
assert_equal(6, res)
1284
enddef
1285
1286
+def Test_keys_return_type()
1287
+ const var: list<string> = #{a: 1, b: 2}->keys()
1288
+ assert_equal(['a', 'b'], var)
1289
+enddef
1290
+
1291
def Test_reverse_return_type()
1292
let l = reverse([1, 2, 3])
1293
let res = 0
src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
754
755
static int included_patches[] =
756
{ /* Add new patch number below this line */
757
+/**/
758
+ 1447,
759
/**/
760
1446,
761
0 commit comments