-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected ASI after static
in class
#43836
Comments
The phrasing in expected/actual is a bit jumbled, so to be clear, the correct behavior is to parse this as |
Oh I just got them reversed, I updated the description. |
π Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of the repro in this issue running against the nightly TypeScript. Issue body code block by @nicolo-ribaudo β Failed: -
Historical InformationIssue body code block by @nicolo-ribaudo
|
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
.The text was updated successfully, but these errors were encountered: