0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.3859: Vim9: some code lines not tested

Problem:    Vim9: some code lines not tested.
Solution:   Add a few specific tests.
This commit is contained in:
Bram Moolenaar
2021-12-20 12:25:03 +00:00
parent 003312b1d2
commit a99fb23842
5 changed files with 16 additions and 8 deletions

View File

@@ -2963,7 +2963,7 @@ enddef
def Test_for_loop_script_var()
# cannot use s:var in a :def function
CheckDefFailure(['for s:var in range(3)', 'echo 3'], 'E461:')
CheckDefFailure(['for s:var in range(3)', 'echo 3'], 'E1254:')
# can use s:var in Vim9 script, with or without s:
var lines =<< trim END