diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-28 16:55:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-28 16:55:11 +0100 |
commit | 057e84afe5bd37fe272bf7cfafca629ef9da1bd3 (patch) | |
tree | c32b619151d50bf4df8061001e1515a9f267a085 /src/proto/vim9compile.pro | |
parent | 087b5ff35d219f4f48a3d4854783799d0f6a1732 (diff) |
patch 8.2.2558: no error if a lambda argument shadows a variablev8.2.2558
Problem: No error if a lambda argument shadows a variable.
Solution: Check that the argument name shadows a local, argument or script
variable. (closes #7898)
Diffstat (limited to 'src/proto/vim9compile.pro')
-rw-r--r-- | src/proto/vim9compile.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/vim9compile.pro b/src/proto/vim9compile.pro index 410910f001..4f2fffe686 100644 --- a/src/proto/vim9compile.pro +++ b/src/proto/vim9compile.pro @@ -1,6 +1,6 @@ /* vim9compile.c */ int script_var_exists(char_u *name, size_t len, int vim9script, cctx_T *cctx); -int check_defined(char_u *p, size_t len, cctx_T *cctx); +int check_defined(char_u *p, size_t len, cctx_T *cctx, int is_arg); int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2); int use_typecheck(type_T *actual, type_T *expected); int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); |