0
0
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:
Bram Moolenaar
2021-08-11 21:49:23 +02:00
parent ed7cb2df35
commit 4f0884d6e2
9 changed files with 261 additions and 106 deletions

View File

@@ -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"]',