Private and protected modifiers are removed without error in declaration emit if class expression is passed through a generic function #42499
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
π Search Terms
class expressions private protected declaration
mixins private protected declaration
π Version & Regression Information:
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Emitted declaration erases
privateandprotectedmodifiers onDisposableMixin. This actually generates a ts error in the declaration ofMonitoron the_onDisposeoverride, since the method has a more restrictive modifier than the emitted declaration for the base class.Playground Link
π Expected behavior
An error on the exported private and protected members (like what happens if you uncomment
DisposableMixinError):Note
This issue might be made moot by #41581 in 4.3, or later, depending when declaration emit will be changed to use
typeof classThe text was updated successfully, but these errors were encountered: