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