summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_expr.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-17 12:45:22 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-17 12:45:22 +0000
commit259f443a934c6f2447a14bfe54403903416a9af0 (patch)
treeda948110b6b10310d7d194845215ce7690057581 /src/testdir/test_vim9_expr.vim
parentdeda6441e457072df39cdc8744dcd685d77fa273 (diff)
downloadvim-git-259f443a934c6f2447a14bfe54403903416a9af0.tar.gz
patch 8.2.3835: the inline-function example does not workv8.2.3835
Problem: The inline-function example does not work. Solution: Drop ":let". Add EX_EXPR_ARG to CMD_var. (issue #9352)
Diffstat (limited to 'src/testdir/test_vim9_expr.vim')
-rw-r--r--src/testdir/test_vim9_expr.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim
index e374788db..685bde2ec 100644
--- 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()