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:
@@ -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
|
||||
|
Reference in New Issue
Block a user