-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unexpected ASI after static in classΒ #43836
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosThis issue has compiler-backed repros: https://aka.ms/ts-reprosRescheduledThis 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 TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosThis issue has compiler-backed repros: https://aka.ms/ts-reprosRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Bug Report
π Search Terms
static ASI newline
Related: #38283
π Version & Regression Information
It fails 4.2.3 and nightly. It works in 4.0.5. I think this regression has been introduced by #41127.
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
It is parsed as two instance fields named
static.π Expected behavior
It should be parsed as a static field named
static.