diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-02 16:20:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-02 16:20:26 +0000 |
commit | a1c519518050383e7d319514a3ff6c42a9154c48 (patch) | |
tree | b2263814d4ed499842a1a1f381a7d1930720e26b /src/vim9compile.c | |
parent | ab8f7c50cf7d5c0c72dfa5067e5b1f57585db4d8 (diff) | |
download | vim-git-a1c519518050383e7d319514a3ff6c42a9154c48.tar.gz |
patch 8.2.4285: Vim9: type of item in for loop not checked properlyv8.2.4285
Problem: Vim9: type of item in for loop not checked properly.
Solution: Adjust the type checking. (closes #9683)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 9ad1e7ddc..9dbd1198d 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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, |