0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1152: class "implements" argument not implemented

Problem:    Class "implements" argument not implemented.
Solution:   Implement "implements" argument.  Add basic checks for when a
            class implements an interface.
This commit is contained in:
Bram Moolenaar
2023-01-06 18:42:20 +00:00
parent 5bcd29b84e
commit 94674f2223
8 changed files with 249 additions and 14 deletions

View File

@@ -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