Mercurial > vim
diff src/testdir/test_vim9_expr.vim @ 26612:2586659245db v8.2.3835
patch 8.2.3835: the inline-function example does not work
Commit: https://github.com/vim/vim/commit/259f443a934c6f2447a14bfe54403903416a9af0
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 17 12:45:22 2021 +0000
patch 8.2.3835: the inline-function example does not work
Problem: The inline-function example does not work.
Solution: Drop ":let". Add EX_EXPR_ARG to CMD_var. (issue https://github.com/vim/vim/issues/9352)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Dec 2021 14:00:04 +0100 |
parents | 9f7568104726 |
children | a07323eb647f |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -2557,10 +2557,19 @@ def Test_expr7_dict_in_block() k: 0, } } MyCommand + + command YourCommand { + g:global = { + key: 'value' } + } + YourCommand + assert_equal({key: 'value'}, g:global) + unlet g:global END CheckScriptSuccess(lines) delcommand MyCommand + delcommand YourCommand enddef def Test_expr7_call_2bool()