comparison src/eval.c @ 23239:a789a688e37d v8.2.2165

patch 8.2.2165: Vim9: assignment to dict member does not work Commit: https://github.com/vim/vim/commit/8f22f5c3aa0aa96e3843a57f29405625d8514c74 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 19 22:10:13 2020 +0100 patch 8.2.2165: Vim9: assignment to dict member does not work Problem: Vim9: assignment to dict member does not work. Solution: Fix recognizing dict member. (closes https://github.com/vim/vim/issues/7484)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Dec 2020 22:45:03 +0100
parents 657216220293
children 5b4db8035d1d
comparison
equal deleted inserted replaced
23238:5945735ad4af 23239:a789a688e37d
871 if (v == NULL && !quiet) 871 if (v == NULL && !quiet)
872 semsg(_(e_undefined_variable_str), lp->ll_name); 872 semsg(_(e_undefined_variable_str), lp->ll_name);
873 *p = cc; 873 *p = cc;
874 if (v == NULL) 874 if (v == NULL)
875 return NULL; 875 return NULL;
876
877 if (in_vim9script() && (flags & GLV_NO_DECL) == 0)
878 {
879 if (!quiet)
880 semsg(_(e_variable_already_declared), lp->ll_name);
881 return NULL;
882 }
876 883
877 /* 884 /*
878 * Loop until no more [idx] or .key is following. 885 * Loop until no more [idx] or .key is following.
879 */ 886 */
880 lp->ll_tv = &v->di_tv; 887 lp->ll_tv = &v->di_tv;