comparison 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
comparison
equal deleted inserted replaced
23137:d9bcd21008bb 23138:1a9705075244
5703 { 5703 {
5704 type_T *use_type = lvar->lv_type; 5704 type_T *use_type = lvar->lv_type;
5705 5705
5706 // without operator check type here, otherwise below 5706 // without operator check type here, otherwise below
5707 if (has_index) 5707 if (has_index)
5708 {
5709 use_type = member_type; 5708 use_type = member_type;
5710 if (member_type == NULL)
5711 // could be indexing "any"
5712 use_type = &t_any;
5713 }
5714 if (need_type(rhs_type, use_type, -1, cctx, 5709 if (need_type(rhs_type, use_type, -1, cctx,
5715 FALSE, is_const) == FAIL) 5710 FALSE, is_const) == FAIL)
5716 goto theend; 5711 goto theend;
5717 } 5712 }
5718 } 5713 }