diff src/vim9compile.c @ 22898:a8bccb0634bc v8.2.1996

patch 8.2.1996: Vim9: invalid error for argument of extend() Commit: https://github.com/vim/vim/commit/193f6201b4d5c76f8dc1faa1dcf369575d93fe3a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 16 20:08:35 2020 +0100 patch 8.2.1996: Vim9: invalid error for argument of extend() Problem: Vim9: invalid error for argument of extend(). Solution: Check if the type could match. (closes https://github.com/vim/vim/issues/7299)
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Nov 2020 20:15:04 +0100
parents 53acb89ec9f2
children 5ff7125e81fc
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -820,7 +820,7 @@ generate_TYPECHECK(
  * Return TRUE if "actual" could be "expected" and a runtime typecheck is to be
  * used.  Return FALSE if the types will never match.
  */
-    static int
+    int
 use_typecheck(type_T *actual, type_T *expected)
 {
     if (actual->tt_type == VAR_ANY