mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.0483: Vim9: "let x = x + 1" does not give an error
Problem: Vim9: "let x = x + 1" does not give an error. Solution: Hide the variable when compiling the expression.
This commit is contained in:
@@ -738,6 +738,8 @@ def Test_expr7_dict()
|
||||
call CheckDefFailure("let x = {'a': xxx}", 'E1001:')
|
||||
call CheckDefFailure("let x = {xxx: 8}", 'E1001:')
|
||||
call CheckDefFailure("let x = #{a: 1, a: 2}", 'E721:')
|
||||
call CheckDefFailure("let x += 1", 'E1020:')
|
||||
call CheckDefFailure("let x = x + 1", 'E1001:')
|
||||
call CheckDefExecFailure("let x = g:anint.member", 'E715:')
|
||||
call CheckDefExecFailure("let x = g:dict_empty.member", 'E716:')
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user