vim-patch:8.2.0512: Vim9: no optional arguments in func type

Problem:    Vim9: no optional arguments in func type.
Solution:   Check for question mark after type.  Find function reference
            without function().

https://github.com/vim/vim/commit/5deeb3f1f9db4eabd36e99cbf857fe376eb37e10

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2025-08-01 21:53:01 -04:00
parent a9a4c271b1
commit 758e6db06c
+1 -1
View File
@@ -326,7 +326,7 @@ struct ufunc {
int uf_flags;
int uf_calls; ///< nr of active calls
bool uf_cleared; ///< func_clear() was already called
garray_T uf_args; ///< arguments
garray_T uf_args; ///< arguments, including optional arguments
garray_T uf_def_args; ///< default argument expressions
garray_T uf_lines; ///< function lines
int uf_profiling; ///< true when func is being profiled