diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-11 20:50:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-11 20:50:33 +0200 |
commit | 1378fbc4591b77186c90beda37bdac628add4cb6 (patch) | |
tree | 9ccfd811d26d22c6cf36cacb50d6ad0d6e062a05 /src/structs.h | |
parent | 8832a3457831707286dd2d9252ba14a5f9fd4c60 (diff) |
patch 8.2.0543: Vim9: function with varargs does not work properlyv8.2.0543
Problem: Vim9: function with varargs does not work properly.
Solution: Improve function type spec and add tests. Fix bugs.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index 851ee6310e..1d3d411172 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1346,7 +1346,7 @@ typedef enum typedef struct type_S type_T; struct type_S { vartype_T tt_type; - int8_T tt_argcount; // for func, -1 for unknown + int8_T tt_argcount; // for func, incl. vararg, -1 for unknown char tt_min_argcount; // number of non-optional arguments char tt_flags; // TTFLAG_ values type_T *tt_member; // for list, dict, func return type |