mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.2.1003: Vim9: return type of sort() is too generic
Problem: Vim9: return type of sort() is too generic. Solution: Get type from the first argument. (closes #6292)
This commit is contained in:
@@ -807,5 +807,10 @@ def Test_call_closure_not_compiled()
|
||||
assert_equal('sometext', GetResult(g:Ref))
|
||||
enddef
|
||||
|
||||
def Test_sort_return_type()
|
||||
let res: list<number>
|
||||
res = [1, 2, 3]->sort()
|
||||
enddef
|
||||
|
||||
|
||||
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
|
||||
|
Reference in New Issue
Block a user