-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 3.8.0-dev.20200119
Search Terms:
Code
class C {
declare #foo: number;
constructor() {
this.#foo = 1;
}
}
Expected behavior:
Error on declare
modifier as it doesn't make sense for private named properties.
Actual behavior:
No compile error. Instead the emit is invalid. Depending on the target either the property declaration is missing (ESNext) or the whole downleveling is not done at all.
Related Issues:
robpalme
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this