-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
// @target: esnext
// @noImplicitAny: false
class C {
static static
foo() {}
}
Here, ASI needs to take effect and the parse should be a class with two members: a static property named "static", and an instance method named "foo".
Expected
No errors. The file is parsed as
class C {
static static;
foo() {}
}
Actual
'static' modifier already seen.
a-tarasyuk
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 issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone