Mercurial > vim
diff src/list.c @ 26937:7045e9308ca3 v8.2.3997
patch 8.2.3997: Vim9: not enough testing for extend() and map()
Commit: https://github.com/vim/vim/commit/10d6f18b2f9090d19dd884827c4be59a20b446bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 4 15:54:38 2022 +0000
patch 8.2.3997: Vim9: not enough testing for extend() and map()
Problem: Vim9: not enough testing for extend() and map().
Solution: Add more test cases. Fix uncovered problems. Remove unused type
fields.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jan 2022 17:00:04 +0100 |
parents | ccb9be1cdd71 |
children | b34ddbca305c |
line wrap: on
line diff
--- a/src/list.c +++ b/src/list.c @@ -271,7 +271,6 @@ list_free_list(list_T *l) l->lv_used_next->lv_used_prev = l->lv_used_prev; free_type(l->lv_type); - free_type(l->lv_decl_type); vim_free(l); } @@ -1026,8 +1025,6 @@ flatten_common(typval_T *argvars, typval // The type will change. free_type(l->lv_type); l->lv_type = NULL; - free_type(l->lv_decl_type); - l->lv_decl_type = NULL; } else { @@ -1223,7 +1220,6 @@ list_copy(list_T *orig, int deep, int co if (copy != NULL) { copy->lv_type = alloc_type(orig->lv_type); - copy->lv_decl_type = alloc_type(orig->lv_decl_type); if (copyID != 0) { // Do this before adding the items, because one of the items may