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 #9352)
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim
index e374788..685bde2 100644
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -2557,10 +2557,19 @@
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()