Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
22102:2a7b430646c4 | 22103:0825ae9948f7 |
---|---|
1283 res += n | 1283 res += n |
1284 endfor | 1284 endfor |
1285 assert_equal(6, res) | 1285 assert_equal(6, res) |
1286 enddef | 1286 enddef |
1287 | 1287 |
1288 def Test_garbagecollect() | |
1289 garbagecollect(true) | |
1290 enddef | |
1291 | |
1288 def Test_insert_return_type() | 1292 def Test_insert_return_type() |
1289 let l = insert([2, 1], 3) | 1293 let l = insert([2, 1], 3) |
1290 let res = 0 | 1294 let res = 0 |
1291 for n in l | 1295 for n in l |
1292 res += n | 1296 res += n |