comparison src/proto/vim9class.pro @ 31815:64f03e860c91 v9.0.1240

patch 9.0.1240: cannot access a private object member in a lambda Commit: https://github.com/vim/vim/commit/62a6923470827acbf124df41134ae6df52f334e6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 24 15:07:04 2023 +0000 patch 9.0.1240: cannot access a private object member in a lambda Problem: Cannot access a private object member in a lambda defined inside the class. Solution: Go up the context stack to find the class. (closes #11866)
author Bram Moolenaar <Bram@vim.org>
date Tue, 24 Jan 2023 16:15:07 +0100
parents 48431422f766
children ffa11e2757e7
comparison
equal deleted inserted replaced
31814:19d470f5723f 31815:64f03e860c91
5 void ex_enum(exarg_T *eap); 5 void ex_enum(exarg_T *eap);
6 void ex_type(exarg_T *eap); 6 void ex_type(exarg_T *eap);
7 int class_object_index(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose); 7 int class_object_index(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose);
8 ufunc_T *find_class_func(char_u **arg); 8 ufunc_T *find_class_func(char_u **arg);
9 int class_member_index(char_u *name, size_t len, class_T **cl_ret, cctx_T *cctx); 9 int class_member_index(char_u *name, size_t len, class_T **cl_ret, cctx_T *cctx);
10 int inside_class(cctx_T *cctx_arg, class_T *cl);
10 void copy_object(typval_T *from, typval_T *to); 11 void copy_object(typval_T *from, typval_T *to);
11 void object_unref(object_T *obj); 12 void object_unref(object_T *obj);
12 void copy_class(typval_T *from, typval_T *to); 13 void copy_class(typval_T *from, typval_T *to);
13 void class_unref(class_T *cl); 14 void class_unref(class_T *cl);
14 void object_created(object_T *obj); 15 void object_created(object_T *obj);