# HG changeset patch # User Bram Moolenaar # Date 1586708103 -7200 # Node ID 49d692e015cc13f00a11593a7ac87cbb8e295db0 # Parent 73f17fbdc187884daec595a9f7a5dd62c8725de7 patch 8.2.0558: Vim9: dict code not covered by tests Commit: https://github.com/vim/vim/commit/82de464f763d6e6d89229be03ce7c6d02fd5fb59 Author: Bram Moolenaar Date: Sun Apr 12 18:02:06 2020 +0200 patch 8.2.0558: Vim9: dict code not covered by tests Problem: Vim9: dict code not covered by tests. Solution: Remove dead code, adjust test case. diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -767,7 +767,7 @@ def Test_expr7_dict() call CheckDefFailure("let x = #{8: 8}", 'E1014:') call CheckDefFailure("let x = #{xxx}", 'E720:') - call CheckDefFailure("let x = #{xxx: 1", 'E723:') + call CheckDefFailureMult(["let x = #{xxx: 1", "let y = 2"], 'E722:') call CheckDefFailure("let x = #{xxx: 1,", 'E723:') call CheckDefFailure("let x = {'a': xxx}", 'E1001:') call CheckDefFailure("let x = {xxx: 8}", 'E1001:') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 558, +/**/ 557, /**/ 556, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2788,11 +2788,6 @@ compile_dict(char_u **arg, cctx_T *cctx, *arg = skipwhite(*arg + 1); } - if (**arg != '}') - { - semsg(_(e_missing_dict_end), *arg); - goto failret; - } *arg = *arg + 1; // Allow for following comment, after at least one space.