staruml-typescript icon indicating copy to clipboard operation
staruml-typescript copied to clipboard

Fix the wrong negation of the instanceof check

Open tim3trick opened this issue 6 years ago • 0 comments

!elem._parent instanceof type.UMLInterface leads to negating the elem._parent and then doing the instanceof check, which will always result in false.

Always returning false will lead to var _modifiers = this.getModifiers(elem); to not be called, which finally leads to _modifiers.includes("abstract") to fail, because _modifiers is not set

tim3trick avatar May 21 '19 13:05 tim3trick