1
0
forked from aniani/vim

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 #7484)
This commit is contained in:
Bram Moolenaar
2020-12-19 22:10:13 +01:00
parent 17f700ac8b
commit 8f22f5c3aa
5 changed files with 20 additions and 6 deletions

View File

@@ -874,6 +874,13 @@ get_lval(
if (v == NULL)
return NULL;
if (in_vim9script() && (flags & GLV_NO_DECL) == 0)
{
if (!quiet)
semsg(_(e_variable_already_declared), lp->ll_name);
return NULL;
}
/*
* Loop until no more [idx] or .key is following.
*/