Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
19520:fdd51c96d533 | 19521:860b39ed0e0b |
---|---|
211 // recognize commonly used types | 211 // recognize commonly used types |
212 if (member_type->tt_type == VAR_UNKNOWN) | 212 if (member_type->tt_type == VAR_UNKNOWN) |
213 return &t_list_any; | 213 return &t_list_any; |
214 if (member_type->tt_type == VAR_VOID) | 214 if (member_type->tt_type == VAR_VOID) |
215 return &t_list_empty; | 215 return &t_list_empty; |
216 if (member_type->tt_type == VAR_BOOL) | |
217 return &t_list_bool; | |
216 if (member_type->tt_type == VAR_NUMBER) | 218 if (member_type->tt_type == VAR_NUMBER) |
217 return &t_list_number; | 219 return &t_list_number; |
218 if (member_type->tt_type == VAR_STRING) | 220 if (member_type->tt_type == VAR_STRING) |
219 return &t_list_string; | 221 return &t_list_string; |
220 | 222 |
236 // recognize commonly used types | 238 // recognize commonly used types |
237 if (member_type->tt_type == VAR_UNKNOWN) | 239 if (member_type->tt_type == VAR_UNKNOWN) |
238 return &t_dict_any; | 240 return &t_dict_any; |
239 if (member_type->tt_type == VAR_VOID) | 241 if (member_type->tt_type == VAR_VOID) |
240 return &t_dict_empty; | 242 return &t_dict_empty; |
243 if (member_type->tt_type == VAR_BOOL) | |
244 return &t_dict_bool; | |
241 if (member_type->tt_type == VAR_NUMBER) | 245 if (member_type->tt_type == VAR_NUMBER) |
242 return &t_dict_number; | 246 return &t_dict_number; |
243 if (member_type->tt_type == VAR_STRING) | 247 if (member_type->tt_type == VAR_STRING) |
244 return &t_dict_string; | 248 return &t_dict_string; |
245 | 249 |