mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3332: Vim9: cannot assign to range in list
Problem: Vim9: cannot assign to range in list. Solution: Implement overwriting a list range.
This commit is contained in:
@@ -1821,7 +1821,7 @@ def Test_unlet()
|
||||
CheckDefFailure([
|
||||
'var ll = [1, 2]',
|
||||
'll[1 : 2] = 7',
|
||||
], 'E1165:', 2)
|
||||
], 'E1012: Type mismatch; expected list<number> but got number', 2)
|
||||
CheckDefFailure([
|
||||
'var dd = {a: 1}',
|
||||
'unlet dd["a" : "a"]',
|
||||
|
Reference in New Issue
Block a user