You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It ends up that A is essentially dropped, or at least B and C's calls to super.foo() don't make it to A.
The full test case is:
import{mix}from"mics/src/index";constRoot=mix(Base=>classextendsBase{foo(){return"Root";}});// Root mixin A.constMixinA=mix(Base=>classextendsBase{foo(){returnsuper.foo()+" MixinA ";}});// Mixin B extends root mixin A.constMixinB=mix(MixinA,Base=>classextendsBase{foo(){returnsuper.foo()+" MixinB ";}});// Mixin C also extends root mixin A.constMixinC=mix(MixinA,Base=>classextendsBase{foo(){returnsuper.foo()+" MixinC ";}});// Test extends Root, mixing in B and CconstTest=mix(Root,MixinB,MixinC,Base=>classextendsBase{foo(){returnsuper.foo()+" Test";}});consttest=newTest.class();console.log(test.foo());
The text was updated successfully, but these errors were encountered:
I constructed a class hierarchy like
It ends up that A is essentially dropped, or at least B and C's calls to
super.foo()
don't make it to A.The full test case is:
The text was updated successfully, but these errors were encountered: