# HG changeset patch # User Bram Moolenaar # Date 1607461204 -3600 # Node ID 3bec77b242654c94411e461b78592832b98141a2 # Parent 77a756d54bbf72957b69a0cf6d4a9da9e6b6ecb7 patch 8.2.2114: Vim9: unreachable code in assignment Commit: https://github.com/vim/vim/commit/61265b4000b172ce891b3ded221bc0f624d9b55b Author: Bram Moolenaar Date: Tue Dec 8 21:53:28 2020 +0100 patch 8.2.2114: Vim9: unreachable code in assignment Problem: Vim9: unreachable code in assignment. Solution: Remove impossible condition and code. diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 2114, +/**/ 2113, /**/ 2112, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -5483,16 +5483,6 @@ compile_assignment(char_u *arg, exarg_T } } } - else if (name[1] == ':' && name[2] != NUL) - { - semsg(_(e_cannot_use_namespaced_variable), name); - goto theend; - } - else if (!is_decl) - { - semsg(_(e_unknown_variable_str), name); - goto theend; - } else if (check_defined(var_start, varlen, cctx) == FAIL) goto theend; }