]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.0623: error for modifying a const is not detected at compile time v9.0.0623
authorBram Moolenaar <Bram@vim.org>
Thu, 29 Sep 2022 18:14:42 +0000 (19:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 29 Sep 2022 18:14:42 +0000 (19:14 +0100)
commitfa1039760e8c1a0c7a2a722160bd3d71a4736e61
tree3749fc4f1e8e0cdccdde2c131dfca30b3b07917c
parent9f573a8df02d9f699a43d2afbd1d2841d700b9ad
patch 9.0.0623: error for modifying a const is not detected at compile time

Problem:    Error for modifying a const is not detected at compile time.
Solution:   Add TTFLAG_CONST and check for it in add() and extend().
12 files changed:
src/errors.h
src/evalfunc.c
src/globals.h
src/proto/evalfunc.pro
src/proto/vim9type.pro
src/structs.h
src/testdir/test_vim9_builtin.vim
src/testdir/test_vim9_script.vim
src/version.c
src/vim9compile.c
src/vim9instr.c
src/vim9type.c