Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 20017:ee823254dda5 v8.2.0564
patch 8.2.0564: Vim9: calling a def function from non-vim9 may fail
Commit: https://github.com/vim/vim/commit/23e032523e377d367e06441e88c67692a8c6c3e9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 22:22:31 2020 +0200
patch 8.2.0564: Vim9: calling a def function from non-vim9 may fail
Problem: Vim9: calling a def function from non-vim9 may fail.
Solution: Convert varargs to a list.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 22:30:03 +0200 |
parents | c001ee73519a |
children | c85d4e173cc9 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -576,6 +576,13 @@ def Test_multiline() assert_equal('text777one-two', MultiLine('text', 777, 'one', 'two')) enddef +func Test_multiline_not_vim9() + call assert_equal('text1234', MultiLine('text')) + call assert_equal('text777', MultiLine('text', 777)) + call assert_equal('text777one', MultiLine('text', 777, 'one')) + call assert_equal('text777one-two', MultiLine('text', 777, 'one', 'two')) +endfunc + " When using CheckScriptFailure() for the below test, E1010 is generated instead " of E1056.