1
0
forked from aniani/vim

patch 8.2.0340: Vim9: function and partial types not tested

Problem:    Vim9: function and partial types not tested.
Solution:   Support more for partial, add tests.
This commit is contained in:
Bram Moolenaar
2020-03-01 15:36:42 +01:00
parent fbdd08ed9b
commit 087d2e1518
5 changed files with 47 additions and 9 deletions

View File

@@ -60,7 +60,10 @@ def Test_assignment()
if has('float')
let float1: float = 3.4
endif
let party: partial = funcref('Test_syntax')
let funky1: func
let funky2: func = function('len')
let party1: partial
let party2: partial = funcref('Test_syntax')
g:newvar = 'new'
assert_equal('new', g:newvar)