comparison src/proto/vim9compile.pro @ 24033:308d29307910 v8.2.2558

patch 8.2.2558: no error if a lambda argument shadows a variable Commit: https://github.com/vim/vim/commit/057e84afe5bd37fe272bf7cfafca629ef9da1bd3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 28 16:55:11 2021 +0100 patch 8.2.2558: no error if a lambda argument shadows a variable 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Feb 2021 17:00:04 +0100
parents c192411b27e8
children c20e763bc73c
comparison
equal deleted inserted replaced
24032:5b7b5227cb2a 24033:308d29307910
1 /* vim9compile.c */ 1 /* vim9compile.c */
2 int script_var_exists(char_u *name, size_t len, int vim9script, cctx_T *cctx); 2 int script_var_exists(char_u *name, size_t len, int vim9script, cctx_T *cctx);
3 int check_defined(char_u *p, size_t len, cctx_T *cctx); 3 int check_defined(char_u *p, size_t len, cctx_T *cctx, int is_arg);
4 int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2); 4 int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2);
5 int use_typecheck(type_T *actual, type_T *expected); 5 int use_typecheck(type_T *actual, type_T *expected);
6 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); 6 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const);
7 int func_needs_compiling(ufunc_T *ufunc, int profile); 7 int func_needs_compiling(ufunc_T *ufunc, int profile);
8 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx); 8 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx);