Closed
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: