changeset 24367:95b8937804d3 v8.2.2724

patch 8.2.2724: Vim9: concatenating to list in dict not tested Commit: https://github.com/vim/vim/commit/0d351a04e137b5c25dd558476182e4cbc81a287d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 5 21:05:26 2021 +0200 patch 8.2.2724: Vim9: concatenating to list in dict not tested Problem: Vim9: concatenating to list in dict not tested. Solution: Add a test. (issue https://github.com/vim/vim/issues/8068)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Apr 2021 21:15:03 +0200
parents 6b925d35135e
children 4bf6a466ef7d
files src/testdir/test_vim9_assign.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_vim9_assign.vim
+++ b/src/testdir/test_vim9_assign.vim
@@ -1152,6 +1152,10 @@ def Test_assign_dict_with_op()
     dd.a.b = [0]
     dd.a.b += [1]
     assert_equal({a: {b: [0, 1]}}, dd)
+
+    var dab = {a: ['b']}
+    dab.a[0] ..= 'c'
+    assert_equal({a: ['bc']}, dab)
   END
   CheckDefAndScriptSuccess(lines)
 enddef
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2724,
+/**/
     2723,
 /**/
     2722,