changeset 23136:3bec77b24265 v8.2.2114

patch 8.2.2114: Vim9: unreachable code in assignment Commit: https://github.com/vim/vim/commit/61265b4000b172ce891b3ded221bc0f624d9b55b Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Dec 2020 22:00:04 +0100
parents 77a756d54bbf
children d9bcd21008bb
files src/version.c src/vim9compile.c
diffstat 2 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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;
 		}