mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.0291: Vim9: assigning [] to list<string> doesn't work
Problem: Vim9: assigning [] to list<string> doesn't work. Solution: Use void for empty list and dict. (Ken Takata, closes #5669)
This commit is contained in:
@@ -40,9 +40,8 @@ def Test_assignment()
|
||||
let list1: list<string> = ['sdf', 'asdf']
|
||||
let list2: list<number> = [1, 2, 3]
|
||||
|
||||
" TODO: does not work yet
|
||||
" let listS: list<string> = []
|
||||
" let listN: list<number> = []
|
||||
let listS: list<string> = []
|
||||
let listN: list<number> = []
|
||||
|
||||
let dict1: dict<string> = #{key: 'value'}
|
||||
let dict2: dict<number> = #{one: 1, two: 2}
|
||||
|
Reference in New Issue
Block a user