From 5e166492d5be96fc5a5c6fff9b28be04b32faab9 Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 29 May 2019 18:46:31 +0200 Subject: [PATCH] Revert 02471b4ccb. --- engine/oop.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/engine/oop.c b/engine/oop.c index 2480dfe..4f1c381 100644 --- a/engine/oop.c +++ b/engine/oop.c @@ -282,11 +282,9 @@ PH7_PRIVATE sxi32 PH7_ClassInherit(ph7_vm *pVm, ph7_class *pSub, ph7_class *pBas } } /* Install the method */ - if(pMeth->iProtection != PH7_CLASS_PROT_PRIVATE) { - rc = SyHashInsert(&pSub->hMethod, (const void *)pName->zString, pName->nByte, pMeth); - if(rc != SXRET_OK) { - return rc; - } + rc = SyHashInsert(&pSub->hMethod, (const void *)pName->zString, pName->nByte, pMeth); + if(rc != SXRET_OK) { + return rc; } } /* Mark first inherited class as direct subclass */