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
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
private
andprotected
modifiers onDisposableMixin
. This actually generates a ts error in the declaration ofMonitor
on the_onDispose
override, 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 class
The text was updated successfully, but these errors were encountered: