0
0
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:
Bram Moolenaar
2020-02-20 22:54:43 +01:00
parent 85683ec620
commit 436472f5e0
4 changed files with 26 additions and 12 deletions

View File

@@ -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}