patch 9.1.1146: Vim9: wrong context being used when evaluating class member
Problem: Vim9: wrong context being used when evaluating class member
(lifepillar, Ernie Rael)
Solution: Use the correct script context when evaluating a class member
init expression(Yegappan Lakshmanan)
fixes: #14011
fixes: #14402
closes: #15112
closes: #16660
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/structs.h b/src/structs.h
index 03c28e2..ce98bce 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1568,6 +1568,7 @@
type_T *ocm_type;
int ocm_flags;
char_u *ocm_init; // allocated
+ sctx_T ocm_init_sctx; // script context of the initializer expression
} ocmember_T;
// used for the lookup table of a class member index and object method index