]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.1682: Vim9: const works in an unexpected way v8.2.1682
authorBram Moolenaar <Bram@vim.org>
Mon, 14 Sep 2020 16:15:09 +0000 (18:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 14 Sep 2020 16:15:09 +0000 (18:15 +0200)
commitdbeecb2b6bc5bf90b7345807e0a313fe890a7c7b
treeec6d6811457956a75a6deaf63566e0d73690e7ab
parent08052228a72074cdb0165e65f01b2fa8fce867ea
patch 8.2.1682: Vim9: const works in an unexpected way

Problem:    Vim9: const works in an unexpected way.
Solution:   ":const" only disallows changing the variable, not the value.
            Make "list[0] = 9" work at the script level.
src/evalvars.c
src/testdir/test_vim9_script.vim
src/version.c
src/vim9compile.c