1
0
forked from aniani/vim

patch 8.2.0318: Vim9: types not sufficiently tested

Problem:    Vim9: types not sufficiently tested.
Solution:   Add tests with more types.
This commit is contained in:
Bram Moolenaar
2020-02-25 22:58:29 +01:00
parent 703ea9eaef
commit 0c2ca58ef0
5 changed files with 20 additions and 2 deletions

View File

@@ -213,6 +213,8 @@ get_list_type(type_T *member_type, garray_T *type_list)
return &t_list_any;
if (member_type->tt_type == VAR_VOID)
return &t_list_empty;
if (member_type->tt_type == VAR_BOOL)
return &t_list_bool;
if (member_type->tt_type == VAR_NUMBER)
return &t_list_number;
if (member_type->tt_type == VAR_STRING)
@@ -238,6 +240,8 @@ get_dict_type(type_T *member_type, garray_T *type_list)
return &t_dict_any;
if (member_type->tt_type == VAR_VOID)
return &t_dict_empty;
if (member_type->tt_type == VAR_BOOL)
return &t_dict_bool;
if (member_type->tt_type == VAR_NUMBER)
return &t_dict_number;
if (member_type->tt_type == VAR_STRING)