forked from aniani/vim
patch 8.2.2115: Vim9: some errors not tested for; dead code
Problem: Vim9: some errors not tested for; dead code. Solution: Add a test. Remove dead code.
This commit is contained in:
@@ -5705,12 +5705,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
|
||||
|
||||
// without operator check type here, otherwise below
|
||||
if (has_index)
|
||||
{
|
||||
use_type = member_type;
|
||||
if (member_type == NULL)
|
||||
// could be indexing "any"
|
||||
use_type = &t_any;
|
||||
}
|
||||
if (need_type(rhs_type, use_type, -1, cctx,
|
||||
FALSE, is_const) == FAIL)
|
||||
goto theend;
|
||||
|
Reference in New Issue
Block a user