patch 8.2.0318: Vim9: types not sufficiently tested
Problem: Vim9: types not sufficiently tested.
Solution: Add tests with more types.
diff --git a/src/vim9compile.c b/src/vim9compile.c
index e21f5cb..d62df6e 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -213,6 +213,8 @@
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 @@
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)