Usage of base class for anonymous class results in erroneous declaration output #42738
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
π Search Terms
mixin declaration
π Version & Regression Information
β― Playground Link
Playground link with relevant code
Workbench Repro
π» Code
π Actual behavior
The
.d.ts
file forMyPanel
includes a full copy of the anonymous class, including its base class. In other words: anything defined in a base class of an anonymous class that is mixed-in gets copied into the.d.ts
file. A manual class declaration which gets passed into a mixin declaration does not show the same behavior.π Expected behavior
Mixing an anonymous class with a base class should generate the same
.d.ts
with regards to how the base class is mixed-in. In the playground link, that would mean thatMyPanel_base
does not copy the two methods defined onMyWidget
and instead extendsMyWidget
.The text was updated successfully, but these errors were encountered: