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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user