diff src/vim9compile.c @ 27515:1aff400b819e v8.2.4285

patch 8.2.4285: Vim9: type of item in for loop not checked properly Commit: https://github.com/vim/vim/commit/a1c519518050383e7d319514a3ff6c42a9154c48 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 2 16:20:26 2022 +0000 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 https://github.com/vim/vim/issues/9683)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Feb 2022 17:30:05 +0100
parents 9a9c34c84cd4
children 55f0ac079829
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -386,7 +386,7 @@ use_typecheck(type_T *actual, type_T *ex
  * 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,