summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_cmd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-31 21:28:47 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-31 21:28:47 +0100
commit2949cfdbe4335b9abcfeda1be4dfc52090ee1df6 (patch)
treec52ad04115de4f66f1ad0af46b48bf7b4043d06f /src/testdir/test_vim9_cmd.vim
parentadc8e4464563a2952c10362d396bb4a9f28cd12d (diff)
downloadvim-git-2949cfdbe4335b9abcfeda1be4dfc52090ee1df6.tar.gz
patch 8.2.2257: Vim9: using -> for lambda is ambiguousv8.2.2257
Problem: Vim9: using -> for lambda is ambiguous. Solution: Stop supporting ->, must use =>.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r--src/testdir/test_vim9_cmd.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 201784684..095158c51 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -305,7 +305,7 @@ enddef
def Test_skipped_expr_linebreak()
if 0
var x = []
- ->map({ -> 0})
+ ->map(() => 0)
endif
enddef
@@ -368,7 +368,7 @@ enddef
def Test_filter_is_not_modifier()
var tags = [{a: 1, b: 2}, {x: 3, y: 4}]
- filter(tags, { _, v -> has_key(v, 'x') ? 1 : 0 })
+ filter(tags, ( _, v) => has_key(v, 'x') ? 1 : 0 )
assert_equal([{x: 3, y: 4}], tags)
enddef