mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.1286: Vim9: No error when using a type to a window variable
Problem: Vim9: No error when using a type to a window variable Solution: Recognize the syntax and give an error. (closes #6521)
This commit is contained in:
@@ -376,6 +376,15 @@ def Test_assignment_failure()
|
||||
|
||||
call assert_fails('s/^/\=Mess()/n', 'E794:')
|
||||
call CheckDefFailure(['let var: dict<number'], 'E1009:')
|
||||
|
||||
call CheckDefFailure(['w:foo: number = 10'],
|
||||
'E488: Trailing characters: : number = 1')
|
||||
call CheckDefFailure(['t:foo: bool = true'],
|
||||
'E488: Trailing characters: : bool = true')
|
||||
call CheckDefFailure(['b:foo: string = "x"'],
|
||||
'E488: Trailing characters: : string = "x"')
|
||||
call CheckDefFailure(['g:foo: number = 123'],
|
||||
'E488: Trailing characters: : number = 123')
|
||||
enddef
|
||||
|
||||
def Test_unlet()
|
||||
|
Reference in New Issue
Block a user