Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
26611:6da29744e94a | 26612:2586659245db |
---|---|
2555 command MyCommand { | 2555 command MyCommand { |
2556 echo { | 2556 echo { |
2557 k: 0, } | 2557 k: 0, } |
2558 } | 2558 } |
2559 MyCommand | 2559 MyCommand |
2560 | |
2561 command YourCommand { | |
2562 g:global = { | |
2563 key: 'value' } | |
2564 } | |
2565 YourCommand | |
2566 assert_equal({key: 'value'}, g:global) | |
2567 unlet g:global | |
2560 END | 2568 END |
2561 CheckScriptSuccess(lines) | 2569 CheckScriptSuccess(lines) |
2562 | 2570 |
2563 delcommand MyCommand | 2571 delcommand MyCommand |
2572 delcommand YourCommand | |
2564 enddef | 2573 enddef |
2565 | 2574 |
2566 def Test_expr7_call_2bool() | 2575 def Test_expr7_call_2bool() |
2567 var lines =<< trim END | 2576 var lines =<< trim END |
2568 vim9script | 2577 vim9script |