diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-17 13:08:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-17 13:08:26 +0000 |
commit | e08be09a08485e8c919f46c05223c1ccfdaf175d (patch) | |
tree | 10f2b1411ce97253eeef03d03835561766a17e1c /src/testdir/test_vim9_cmd.vim | |
parent | 24384308635f40b15d399fbd4e60c25d5e21ed8d (diff) |
patch 8.2.4407: Vim9: some code not covered by testsv8.2.4407
Problem: Vim9: some code not covered by tests.
Solution: Add more tests. Avoid giving two errors. Remove dead code.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 10be6910af..e4bea07546 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -1529,6 +1529,17 @@ def Test_lockvar() var lines =<< trim END vim9script + g:bl = 0z1122 + lockvar g:bl + def Tryit() + g:bl[1] = 99 + enddef + Tryit() + END + v9.CheckScriptFailure(lines, 'E741:', 1) + + lines =<< trim END + vim9script var theList = [1, 2, 3] def SetList() theList[1] = 22 |