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
Expected behavior
I expect the derived class to have in the manifest the value property as in the base class and not as in the mixin.
Debugging your code (current state on main: 94650b6), the issue arise from the getInheritanceTree method in the manifest-helper.js file.
In the code block starting at line 99, the base class is pushed in the tree after its mixins, so in the applyInheritancePlugin function at line 23 the base class is the last of the chain.
Checklist
--dev
flag to get more information?I created a
MixinClass
mixin with a single property namedvalue
: it has a default value (empty string) and a jsDoc.Then I have a base class named
BaseElement
which applies the mixin and overrides both the default and the jsDoc.Finally I have a derived class that extends the base class:
BUG
The derived class in the manifest has the
value
property as defined in the mixin and not as overridden in the base class.Expected behavior
I expect the derived class to have in the manifest the
value
property as in the base class and not as in the mixin.Debugging your code (current state on main: 94650b6), the issue arise from the
getInheritanceTree
method in themanifest-helper.js
file.In the code block starting at line 99, the base class is pushed in the tree after its mixins, so in the
applyInheritancePlugin
function at line 23 the base class is the last of the chain.When evaluating the code starting at line 52:
existing
is the mixin andnewItem
the base class, so the default and the jsDoc properties are wrongly overridden.The text was updated successfully, but these errors were encountered: