diff src/vim9compile.c @ 19521:860b39ed0e0b v8.2.0318

patch 8.2.0318: Vim9: types not sufficiently tested Commit: https://github.com/vim/vim/commit/0c2ca58ef06ac49d40330bbe1ee70c3d8af7a648 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 25 22:58:29 2020 +0100 patch 8.2.0318: Vim9: types not sufficiently tested Problem: Vim9: types not sufficiently tested. Solution: Add tests with more types.
author Bram Moolenaar <Bram@vim.org>
date Tue, 25 Feb 2020 23:00:04 +0100
parents 17f0d6dc6a73
children 3b026343f398
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -213,6 +213,8 @@ get_list_type(type_T *member_type, garra
 	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, garra
 	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)