implemented interface method duplication check in the compiler

This commit is contained in:
hyunghwan.chung
2019-10-12 04:21:23 +00:00
parent 5be193b3fe
commit 277dc64ac4
5 changed files with 68 additions and 27 deletions

View File

@ -1847,8 +1847,8 @@ moo_oop_method_t moo_findmethod (moo_t* moo, moo_oop_t receiver, moo_oop_char_t
if (in_super)
{
MOO_ASSERT (moo, moo->active_method);
MOO_ASSERT (moo, moo->active_method->owner);
MOO_ASSERT (moo, moo->active_method != MOO_NULL);
MOO_ASSERT (moo, moo->active_method->owner != MOO_NULL);
/* if 'super' is allowed in the interface method, the owner field
* can be an interface. super must not be allowed in the interface