0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.2114: Vim9: unreachable code in assignment

Problem:    Vim9: unreachable code in assignment.
Solution:   Remove impossible condition and code.
This commit is contained in:
Bram Moolenaar
2020-12-08 21:53:28 +01:00
parent 1b3e0727ce
commit 61265b4000
2 changed files with 2 additions and 10 deletions

View File

@@ -5483,16 +5483,6 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
}
}
}
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;
}