summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-09-18 19:56:49 +0200
committerChristian Brabandt <cb@256bit.org>2023-09-18 19:56:49 +0200
commit00cd18222ee1551c65228e9556c158624507fc7a (patch)
tree2686d05c81b58786e4f0c5b7f284f9e6d9158f8b /src/eval.c
parentd25021cf036c63d539f845a1ee05b03ea21d61ff (diff)
patch 9.0.1909: Vim9: problem calling class method from other classv9.0.1909
Problem: Vim9: problem calling class method from other class Solution: Fix this problem, fix readonly object access, update error messages. Calling a class method from another method without the class name prefix doesn't work properly. A readonly object variable is modifiable outside the class using a nested object assignment. Remove the unused E1338 error message. Update error messages. closes: #13116 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/eval.c b/src/eval.c
index 523546957e..0f952ee3e6 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1180,14 +1180,6 @@ get_lval(
return NULL;
lp->ll_tv = &v->di_tv;
}
- if (vim9script && writing && lp->ll_tv->v_type == VAR_CLASS
- && (lp->ll_tv->vval.v_class->class_flags & CLASS_INTERFACE) != 0)
- {
- if (!quiet)
- semsg(_(e_interface_static_direct_access_str),
- lp->ll_tv->vval.v_class->class_name, lp->ll_name);
- return NULL;
- }
if (vim9script && (flags & GLV_NO_DECL) == 0)
{