0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.2016: Vim9: assignment operators don't work for class vars

Problem:  Vim9: assignment operators don't work for class vars
Solution: implement it

closes: #13306

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Yegappan Lakshmanan
2023-10-11 21:43:52 +02:00
committed by Christian Brabandt
parent 4c8da025ef
commit 1ea428883f
5 changed files with 70 additions and 6 deletions

View File

@@ -2032,7 +2032,7 @@ cleanup:
* Set *p_m ocmmember_T if not NULL
*/
type_T *
class_member_type(
oc_member_type(
class_T *cl,
int is_object,
char_u *name,
@@ -2060,7 +2060,7 @@ class_member_type(
* Given a class or object variable index, return the variable type
*/
type_T *
class_member_type_by_idx(
oc_member_type_by_idx(
class_T *cl,
int is_object,
int member_idx)