summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-13 20:53:13 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-13 20:53:13 +0200
commitf2253963c28e4791092620df6a6bb238c33168df (patch)
tree0533e1d0e8be901337b4f5eb6b2ae05c46938954 /src/list.c
parentf48b2fa33cda94e963f6fa8b78f344385c9ebea6 (diff)
downloadvim-git-f2253963c28e4791092620df6a6bb238c33168df.tar.gz
patch 8.2.2759: Vim9: for loop infers type of loop variablev8.2.2759
Problem: Vim9: for loop infers type of loop variable. Solution: Do not get the member type. (closes #8102)
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list.c b/src/list.c
index 76327abc8..56b2188ff 100644
--- a/src/list.c
+++ b/src/list.c
@@ -2059,7 +2059,7 @@ filter_map(typval_T *argvars, typval_T *rettv, filtermap_T filtermap)
{
// Check that map() does not change the type of the dict.
ga_init2(&type_list, sizeof(type_T *), 10);
- type = typval2type(argvars, get_copyID(), &type_list);
+ type = typval2type(argvars, get_copyID(), &type_list, TRUE);
}
if (argvars[0].v_type == VAR_BLOB)
@@ -2565,7 +2565,7 @@ extend(typval_T *argvars, typval_T *rettv, char_u *arg_errmsg, int is_new)
{
// Check that map() does not change the type of the dict.
ga_init2(&type_list, sizeof(type_T *), 10);
- type = typval2type(argvars, get_copyID(), &type_list);
+ type = typval2type(argvars, get_copyID(), &type_list, TRUE);
}
if (argvars[0].v_type == VAR_LIST && argvars[1].v_type == VAR_LIST)