]> granicus.if.org Git - vim/commitdiff
patch 8.2.2724: Vim9: concatenating to list in dict not tested v8.2.2724
authorBram Moolenaar <Bram@vim.org>
Mon, 5 Apr 2021 19:05:26 +0000 (21:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Apr 2021 19:05:26 +0000 (21:05 +0200)
Problem:    Vim9: concatenating to list in dict not tested.
Solution:   Add a test. (issue #8068)

src/testdir/test_vim9_assign.vim
src/version.c

index 4e78b5d5b5af277f365d3e2999021a5993046f7d..73351b44f4483027b6c9521e942c14f691d2bfe1 100644 (file)
@@ -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
index 9696f5ad3f319e46b0e034fd7cc2ded1bff66c5e..ef8f999ac80f642834aa478219cb44919b59224b 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2724,
 /**/
     2723,
 /**/