patch 8.2.1009: Vim9: some failures not checked for
Problem: Vim9: some failures not checked for.
Solution: Add test cases. Remove unused code.
diff --git a/src/vim9execute.c b/src/vim9execute.c
index e92af22..53a30c9 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -2119,12 +2119,8 @@
list_T *list;
int count = iptr->isn_arg.number;
+ // type will have been checked to be a list
tv = STACK_TV_BOT(-1);
- if (tv->v_type != VAR_LIST)
- {
- emsg(_(e_listreq));
- goto failed;
- }
list = tv->vval.v_list;
// no error for short list, expect it to be checked earlier