0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.1357: Vim9: cannot assign to / register

Problem:    Vim9: cannot assign to / register.
Solution:   Adjust check for assignment.
This commit is contained in:
Bram Moolenaar
2020-08-02 18:58:54 +02:00
parent 7226e5b19b
commit 658217276f
4 changed files with 24 additions and 6 deletions

View File

@@ -470,8 +470,9 @@ def Test_assignment_failure()
call CheckDefFailure(['let $VAR = 5'], 'E1016: Cannot declare an environment variable:')
call CheckScriptFailure(['vim9script', 'let $ENV = "xxx"'], 'E1016:')
call CheckDefFailure(['let @~ = 5'], 'E354:')
call CheckDefFailure(['let @~ = 5'], 'E1066:')
call CheckDefFailure(['let @a = 5'], 'E1066:')
call CheckDefFailure(['let @/ = "x"'], 'E1066:')
call CheckScriptFailure(['vim9script', 'let @a = "abc"'], 'E1066:')
call CheckDefFailure(['let g:var = 5'], 'E1016: Cannot declare a global variable:')