Closed
Description
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
class A {
static
static
}
π Actual behavior
It is parsed as two instance fields named static
.
π Expected behavior
It should be parsed as a static field named static
.