mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.2.1028: Vim9: no error for declaring buffer, window, etc. variable
Problem: Vim9: no error for declaring buffer, window, etc. variable. Solution: Give an error. Unify the error messages.
This commit is contained in:
@@ -1059,7 +1059,7 @@ func Test_expr_fails()
|
||||
call CheckDefFailure(["CallMe2('yes' , 'no')"], 'E1068:')
|
||||
|
||||
call CheckDefFailure(["v:nosuch += 3"], 'E1001:')
|
||||
call CheckDefFailure(["let v:statusmsg = ''"], 'E1064:')
|
||||
call CheckDefFailure(["let v:statusmsg = ''"], 'E1016: Cannot declare a v: variable:')
|
||||
call CheckDefFailure(["let asdf = v:nosuch"], 'E1001:')
|
||||
|
||||
call CheckDefFailure(["echo len('asdf'"], 'E110:')
|
||||
|
Reference in New Issue
Block a user