comparison src/testdir/test_vim9_func.vim @ 21347:d636c7bbe9ab v8.2.1224

patch 8.2.1224: Vim9: arguments from partial are not used Commit: https://github.com/vim/vim/commit/a90afb9a590c92d537faeb16f9ccd282fc78aeff Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 15 22:38:56 2020 +0200 patch 8.2.1224: Vim9: arguments from partial are not used Problem: Vim9: arguments from partial are not used. Solution: Put the partial arguments on the stack. (closes https://github.com/vim/vim/issues/6460)
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Jul 2020 22:45:04 +0200
parents 5dd4cbc1e9e6
children fb8c8fcb7b60
comparison
equal deleted inserted replaced
21346:ec94b49cdca6 21347:d636c7bbe9ab
1053 assert_equal(['file1', 'file2', {'tdir': ['file3']}], TreeWalk('XclosureDir')) 1053 assert_equal(['file1', 'file2', {'tdir': ['file3']}], TreeWalk('XclosureDir'))
1054 1054
1055 delete('XclosureDir', 'rf') 1055 delete('XclosureDir', 'rf')
1056 enddef 1056 enddef
1057 1057
1058 def Test_partial_call()
1059 let Xsetlist = function('setloclist', [0])
1060 Xsetlist([], ' ', {'title': 'test'})
1061 assert_equal({'title': 'test'}, getloclist(0, {'title': 1}))
1062
1063 Xsetlist = function('setloclist', [0, [], ' '])
1064 Xsetlist({'title': 'test'})
1065 assert_equal({'title': 'test'}, getloclist(0, {'title': 1}))
1066
1067 Xsetlist = function('setqflist')
1068 Xsetlist([], ' ', {'title': 'test'})
1069 assert_equal({'title': 'test'}, getqflist({'title': 1}))
1070
1071 Xsetlist = function('setqflist', [[], ' '])
1072 Xsetlist({'title': 'test'})
1073 assert_equal({'title': 'test'}, getqflist({'title': 1}))
1074 enddef
1075
1058 1076
1059 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker 1077 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker