1
0
forked from aniani/vim

patch 8.2.0346: Vim9: finding common list type not tested

Problem:    Vim9: finding common list type not tested.
Solution:   Add more tests.  Fix listing function.  Fix overwriting type.
This commit is contained in:
Bram Moolenaar
2020-03-01 23:32:25 +01:00
parent 815eb83b09
commit 61a6d4e48b
6 changed files with 70 additions and 13 deletions

View File

@@ -66,6 +66,9 @@ def Test_assignment()
let party1: partial
let party2: partial = funcref('Test_syntax')
" type becomes list<any>
let somelist = rand() > 0 ? [1, 2, 3] : ['a', 'b', 'c']
g:newvar = 'new'
assert_equal('new', g:newvar)