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
index 7559069..b352082 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2114,
+/**/
2113,
/**/
2112,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 310e9e2..3ba2f87 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -5483,16 +5483,6 @@
}
}
}
- 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;
}