forked from aniani/vim
patch 8.2.4835: Vim9: some lines not covered by tests
Problem: Vim9: some lines not covered by tests. Solution: Add a few more tests. Fix disassemble output.
This commit is contained in:
@@ -2376,6 +2376,14 @@ def Test_for_loop_unpack()
|
||||
endfor
|
||||
END
|
||||
v9.CheckDefExecFailure(lines, 'E1017:', 1)
|
||||
|
||||
lines =<< trim END
|
||||
for [a, b] in g:listlist
|
||||
echo a
|
||||
endfor
|
||||
END
|
||||
g:listlist = [1, 2, 3]
|
||||
v9.CheckDefExecFailure(lines, 'E1140:', 1)
|
||||
enddef
|
||||
|
||||
def Test_for_loop_with_try_continue()
|
||||
|
Reference in New Issue
Block a user