diff src/testdir/test_vim9_func.vim @ 22103:0825ae9948f7 v8.2.1601

patch 8.2.1601: Vim9: cannot use 'true" with garbagecollect() Commit: https://github.com/vim/vim/commit/2df47310422f4a77e85de7901a5299923a1addd3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 5 17:30:44 2020 +0200 patch 8.2.1601: Vim9: cannot use 'true" with garbagecollect() Problem: Vim9: cannot use 'true" with garbagecollect(). Solution: Use tv_get_bool(). (closes https://github.com/vim/vim/issues/6871)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Sep 2020 17:45:03 +0200
parents 0ee66f232839
children bae2a3fa141f
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1285,6 +1285,10 @@ def Test_extend_return_type()
   assert_equal(6, res)
 enddef
 
+def Test_garbagecollect()
+  garbagecollect(true)
+enddef
+
 def Test_insert_return_type()
   let l = insert([2, 1], 3)
   let res = 0