0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.0339: Vim9: function return type may depend on arguments

Problem:    Vim9: function return type may depend on arguments.
Solution:   Instead of a fixed return type use a function to figure out the
            return type.
This commit is contained in:
Bram Moolenaar
2020-03-01 14:04:46 +01:00
parent f4f190d821
commit fbdd08ed9b
7 changed files with 609 additions and 500 deletions

View File

@@ -55,7 +55,12 @@ def Test_assignment()
if has('channel')
let chan1: channel
let job1: job
endif
if has('float')
let float1: float = 3.4
endif
let party: partial = funcref('Test_syntax')
g:newvar = 'new'
assert_equal('new', g:newvar)