patch 8.2.2306: Vim9: when using function reference type is not checked
Problem: Vim9: when using function reference type is not checked.
Solution: When using a function reference lookup the type and check the
argument types. (issue #7629)
diff --git a/src/structs.h b/src/structs.h
index c016f19..3324b06 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1944,6 +1944,7 @@
partial_T *partial; // for extra arguments
dict_T *selfdict; // Dictionary for "self"
typval_T *basetv; // base for base->method()
+ type_T *check_type; // type from funcref or NULL
} funcexe_T;
/*