allowed interface specification in extending a class. e.g. extend ClassName [Interface1,Interface2,etc] { ... }

This commit is contained in:
hyunghwan.chung
2018-10-12 15:57:58 +00:00
parent a21cee67e0
commit 852349b26c
2 changed files with 16 additions and 0 deletions

View File

@ -8021,6 +8021,11 @@ static int __compile_class_definition (moo_t* moo, int class_type)
cc->super_oop = cc->self_oop->superclass;
MOO_ASSERT (moo, cc->super_oop == moo->_nil || MOO_CLASSOF(moo, cc->super_oop) == moo->_class);
if (TOKEN_TYPE(moo) == MOO_IOTOK_LBRACK)
{
if (process_class_interfaces(moo) <= -1) return -1;
}
}
else
{