summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-02 16:20:26 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-02 16:20:26 +0000
commita1c519518050383e7d319514a3ff6c42a9154c48 (patch)
treeb2263814d4ed499842a1a1f381a7d1930720e26b /src/vim9compile.c
parentab8f7c50cf7d5c0c72dfa5067e5b1f57585db4d8 (diff)
downloadvim-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.c2
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,