diff src/testdir/test_vim9_import.vim @ 27295:69aa20a6e7ae v8.2.4176

patch 8.2.4176: Vim9: cannot use imported function with call() Commit: https://github.com/vim/vim/commit/3d8e25a6d2660432df033cdad29f981ffe6ae0fc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 22 11:00:02 2022 +0000 patch 8.2.4176: Vim9: cannot use imported function with call() Problem: Vim9: cannot use imported function with call(). Solution: Translate the function name. (closes https://github.com/vim/vim/issues/9590)
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Jan 2022 12:15:03 +0100
parents 0f0fa4d12303
children f7cb41ff22a4
line wrap: on
line diff
--- a/src/testdir/test_vim9_import.vim
+++ b/src/testdir/test_vim9_import.vim
@@ -706,7 +706,7 @@ def Test_use_autoload_import_in_fold_exp
   edit! otherfile
   redraw
 
-  set foldexpr= foldmethod&
+  set foldexpr= foldmethod& debug=
   bwipe!
   delete('Xdir', 'rf')
   &rtp = save_rtp
@@ -1525,6 +1525,8 @@ def Test_vim9script_autoload_call()
 
       call another.Getother()
       assert_equal('other', g:result)
+
+      assert_equal('arg', call('another.RetArg', ['arg']))
   END
   CheckScriptSuccess(lines)