Mercurial > vim
diff src/testdir/test_vim9_disassemble.vim @ 23654:1974c5122506 v8.2.2369
patch 8.2.2369: Vim9: functions return true/false but can't be used as bool
Commit: https://github.com/vim/vim/commit/3af15ab7888033fdfae0ae7085172aab794339a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 17 16:16:23 2021 +0100
patch 8.2.2369: Vim9: functions return true/false but can't be used as bool
Problem: Vim9: functions return true/false but can't be used as bool.
Solution: Add ret_number_bool(). (closes https://github.com/vim/vim/issues/7693)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Jan 2021 16:30:05 +0100 |
parents | 8c5374ec8a3d |
children | 0d56d4f107d8 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -762,7 +762,7 @@ def Test_disassemble_const_expr() 'if has("gui_running")\_s*' .. '\d PUSHS "gui_running"\_s*' .. '\d BCALL has(argc 1)\_s*' .. - '\d COND2BOOL\_s*' .. + '\d 2BOOL (!!val)\_s*' .. '\d JUMP_IF_FALSE -> \d\_s*' .. ' echo "yes"\_s*' .. '\d PUSHS "yes"\_s*' ..