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

patch 8.2.1502: Vim9: can use += with a :let command at script level

Problem:    Vim9: can use += with a :let command at script level.
Solution:   Give an error.
This commit is contained in:
Bram Moolenaar
2020-08-21 21:32:50 +02:00
parent 3fc71285d5
commit 122616d9c1
4 changed files with 13 additions and 4 deletions

View File

@@ -1682,8 +1682,6 @@ def Test_expr7_dict()
call CheckDefFailure(["let x = {xxx: 8}"], 'E1001:', 1)
call CheckDefFailure(["let x = #{a: 1, a: 2}"], 'E721:', 1)
call CheckDefFailure(["let x = #"], 'E1015:', 1)
call CheckDefFailure(["let x += 1"], 'E1020:', 1)
call CheckDefFailure(["let x = x + 1"], 'E1001:', 1)
call CheckDefExecFailure(["let x = g:anint.member"], 'E715:', 1)
call CheckDefExecFailure(["let x = g:dict_empty.member"], 'E716:', 1)