-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Function declaration with aliased this not treated as a constructor #39842
Copy link
Copy link
Closed
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosThis issue has compiler-backed repros: https://aka.ms/ts-reprosIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript
Metadata
Metadata
Assignees
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosThis issue has compiler-backed repros: https://aka.ms/ts-reprosIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript
TypeScript Version: 3.9.7
Search Terms:
this, alias
Code
Expected behavior:
service: dataServiceand should offerupdateDataanddisablein completion.Actual behavior:
service: anyPlayground Link: Workbench Repro
Related Issues:
#36618