comparison src/testdir/test_vim9_assign.vim @ 30327:7fde373affbf v9.0.0499

patch 9.0.0499: in :def function list created after const is locked Commit: https://github.com/vim/vim/commit/566badc76ba7c0fbdc75e62f79486182304fc7cc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 18 13:46:08 2022 +0100 patch 9.0.0499: in :def function list created after const is locked Problem: In :def function list created after const is locked. Solution: Reset v_lock. (closes https://github.com/vim/vim/issues/11154)
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Sep 2022 15:00:02 +0200
parents 029c59bf78f1
children b8cda1e1c985
comparison
equal deleted inserted replaced
30326:11405d5fc78f 30327:7fde373affbf
2019 unlet g:globConst 2019 unlet g:globConst
2020 unlet g:FOOS 2020 unlet g:FOOS
2021 unlet g:FLIST 2021 unlet g:FLIST
2022 unlet w:FOOS 2022 unlet w:FOOS
2023 unlet w:FLIST 2023 unlet w:FLIST
2024 enddef
2025
2026 def Test_create_list_after_const()
2027 const a = 1
2028 g:ll = []
2029 assert_equal(0, islocked('g:ll'))
2030 unlet g:ll
2024 enddef 2031 enddef
2025 2032
2026 def Test_var_declaration_fails() 2033 def Test_var_declaration_fails()
2027 var lines =<< trim END 2034 var lines =<< trim END
2028 vim9script 2035 vim9script