diff src/vim9compile.c @ 23138:1a9705075244 v8.2.2115

patch 8.2.2115: Vim9: some errors not tested for; dead code Commit: https://github.com/vim/vim/commit/7257af477bc5f33153f8f700b643551525f1105b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 8 22:08:51 2020 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Dec 2020 22:15:04 +0100
parents 3bec77b24265
children 6aa8ddf7a3fa
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -5705,12 +5705,7 @@ compile_assignment(char_u *arg, exarg_T 
 
 			// 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;