-
Notifications
You must be signed in to change notification settings - Fork 13.3k
super reference in private method throws Β #44515
Copy link
Copy link
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesBehavior of various `class` constructs, e.g. mixins or base classesRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesBehavior of various `class` constructs, e.g. mixins or base classesRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Bug Report
π Search Terms
private, super
π Version & Regression Information
v4.3.2, also tested with nightly in playground
works with ESNext setting (which just strips out the types), Babel, V8
β― Playground Link
https://www.typescriptlang.org/play?ts=4.3.2#code/MYGwhgzhAECC3QN4CgEIC4FMLoBQEolU0SAnTdAV1IDtoByLHe4hAX2Q+VEhgCFomAB5YaAExjwUJAMQAzAPYKCREmQrU6ESgAdMpAHRM8+VtC4kARmFIrpahOSq1o6ABYBLCAflKCZji5gBRocaEtoAF5oGkwAd2g+AgNrW1NuEIgFEEwDEAUAc1xLfCA
π» Code
π Actual behavior
throws error
π Expected behavior
prints 'test'