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

patch 8.2.4285: Vim9: type of item in for loop not checked properly

Problem:    Vim9: type of item in for loop not checked properly.
Solution:   Adjust the type checking. (closes #9683)
This commit is contained in:
Bram Moolenaar
2022-02-02 16:20:26 +00:00
parent ab8f7c50cf
commit a1c5195180
5 changed files with 23 additions and 9 deletions

View File

@@ -386,7 +386,7 @@ use_typecheck(type_T *actual, type_T *expected)
* If "actual_is_const" is TRUE then the type won't change at runtime, do not
* generate a TYPECHECK.
*/
static int
int
need_type_where(
type_T *actual,
type_T *expected,