summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-06 18:42:20 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-06 18:42:20 +0000
commit94674f2223aafeaa4690f25e12f3ebe07814c5ba (patch)
treeec39a32dd6513f68e6f524c4272424a334403def /src/eval.c
parent5bcd29b84e4dd6435177f37a544ecbf8df02412c (diff)
patch 9.0.1152: class "implements" argument not implementedv9.0.1152
Problem: Class "implements" argument not implemented. Solution: Implement "implements" argument. Add basic checks for when a class implements an interface.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index c9d2151dad..0460dec3cc 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5676,7 +5676,8 @@ set_ref_in_item(
case VAR_CLASS:
{
class_T *cl = tv->vval.v_class;
- if (cl != NULL && cl->class_copyID != copyID)
+ if (cl != NULL && cl->class_copyID != copyID
+ && (cl->class_flags && CLASS_INTERFACE) == 0)
{
cl->class_copyID = copyID;
for (int i = 0; !abort